Re: [Tutor] animations and movies

2008-05-09 Thread Vaibhav.bhawsar
pyglet http://www.pyglet.org/ thats an option too On Fri, May 9, 2008 at 7:34 AM, bhaaluu <[EMAIL PROTECTED]> wrote: > http://pygame.org/news.html > > On Thu, May 8, 2008 at 9:40 PM, <[EMAIL PROTECTED]> > wrote: > > hey just wondering if any one can point me in the right direction for > coding

[Tutor] threading: getting latest elements from list/dict

2008-05-05 Thread Vaibhav.bhawsar
Hello I have a thread updating a dictionary with new elements. How can I check for new elements as they are inserted into the dictionary by the thread? In general is it safe to read a dictionary or a list while it is being updated by a running thread? Does the dictionary or list have to be locked w

[Tutor] threading: getting latest elements from list/dict

2008-05-05 Thread Vaibhav.bhawsar
Hello I have a thread updating a dictionary with new elements. How can I check for new elements as they are inserted into the dictionary by the thread? In general is it safe to read a dictionary or a list while it is being updated by a running thread? Does the dictionary or list have to be locked w

[Tutor] howto mysqldb dictionary cursor

2008-04-24 Thread Vaibhav.bhawsar
I have been trying to get the DictCursor working with mysqldb module but can't seem to. I have pasted the basic connection code and the traceback from pydev. The connection does open with the default cursor class. can't figure out how to use the dict cursor class instead of the default one. many th

Re: [Tutor] knowing when a list is updated by a thread

2008-04-23 Thread Vaibhav.bhawsar
Some good ideas! Kent I looked at the queue module and that looks like something I would use. will post my results. Thanks On Wed, Apr 23, 2008 at 9:52 AM, Hansen, Mike <[EMAIL PROTECTED]> wrote: > > > > Evey time someone recommends Queue I think "oh boy this will > > really help > > me". Then I

[Tutor] knowing when a list is updated by a thread

2008-04-23 Thread Vaibhav.bhawsar
i have this code to print every new element in a list only when the list length changes (while the list is updated by a thread running elsewhere)...I was wondering if there is a pythonic way to do this? how does one know when there is a new element in the list? prevlength = 0 while geoCode.run

[Tutor] knowing when a list is updated by a thread

2008-04-22 Thread Vaibhav.bhawsar
i have this code to print every new element in a list only when the list length changes (while the list is updated by a thread running elsewhere)...I was wondering if there is a pythonic way to do this? how does one know when there is a new element in the list? prevlength = 0 while geoCode.run