Re: Noob can't make threads work

2005-03-01 Thread Steve Holden
Grant Edwards wrote: On 2005-03-01, Steve Horsley <[EMAIL PROTECTED]> wrote: t1 = threading.Thread(target=fiddle()) t2 = threading.Thread(target=fiddle()) t1 = threading.Thread(target=fiddle) t2 = threading.Thread(target=fiddle) Doh! Slap that forehead! Of course, I was calling fiddle() and usi

Re: Noob can't make threads work

2005-03-01 Thread Grant Edwards
On 2005-03-01, Steve Horsley <[EMAIL PROTECTED]> wrote: >>>t1 = threading.Thread(target=fiddle()) >>>t2 = threading.Thread(target=fiddle()) >> >> t1 = threading.Thread(target=fiddle) >> t2 = threading.Thread(target=fiddle) > > > Doh! Slap that forehead! > > Of course, I was calling fiddle() and

Re: Noob can't make threads work

2005-03-01 Thread Steve Horsley
Grant Edwards wrote: On 2005-03-01, Steve Horsley <[EMAIL PROTECTED]> wrote: I am trying to start two threads to do some time consuming work. This is my first stab at threading, and it isn't working as I expect. Instead of the threads starting when I call start(), they seem to run the target code

Re: Noob can't make threads work

2005-03-01 Thread Grant Edwards
On 2005-03-01, Steve Horsley <[EMAIL PROTECTED]> wrote: > I am trying to start two threads to do some time consuming work. This is my > first stab at threading, and it isn't working as I expect. Instead of the > threads starting when I call start(), they seem to run the target code as > part of th

Noob can't make threads work

2005-03-01 Thread Steve Horsley
I am trying to start two threads to do some time consuming work. This is my first stab at threading, and it isn't working as I expect. Instead of the threads starting when I call start(), they seem to run the target code as part of the constructor call. Here is my test code... #!/usr/bin/python i