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

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

2008-04-23 Thread Hansen, Mike
> Evey time someone recommends Queue I think "oh boy this will > really help > me". Then I go to the Library Reference, read the Queue docs > and think > "oh boy who can help me understand this". Even the sample code is > confusing. > > Is there some other documentation or example? > > >

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

2008-04-23 Thread Hansen, Mike
> Evey time someone recommends Queue I think "oh boy this will > really help > me". Then I go to the Library Reference, read the Queue docs > and think > "oh boy who can help me understand this". Even the sample code is > confusing. > > Is there some other documentation or example? > > >

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

2008-04-23 Thread bob gailer
Kent Johnson wrote: Vaibhav.bhawsar wrote: 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

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

2008-04-23 Thread Kent Johnson
Vaibhav.bhawsar wrote: 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? prevleng

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

2008-04-23 Thread linuxian iandsd
if i only wanted the last element ofthe list, i would change the "geoCode.getResults()' to return to me both the complete list & the new elements in the list. it should be pretty easy from there. if what you need is to sort the list & see whether a value have changed or not then you will be better

[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