On Wed, 16 Feb 2005 16:50:07 +1300, Liam Clarke <[EMAIL PROTECTED]> wrote:
> Oops, you probably want to do this then-
>
> for i in range( 0, 3 ):
> oThread = Thread( target=mainFunction ).start()
>
> while oThread:
> print 'sleeping 3 seconds'
> time.sleep( 3 )
Not to beat a dead horse, but
Liam Clarke wrote:
Oops, you probably want to do this then-
for i in range( 0, 3 ):
oThread = Thread( target=mainFunction ).start()
Thread.start() looks like it returns None.
#
In [23]: from threading import Thread
In [24]: impo
Oops, you probably want to do this then-
for i in range( 0, 3 ):
oThread = Thread( target=mainFunction ).start()
while oThread:
print 'sleeping 3 seconds'
time.sleep( 3 )
A if generally has an implicit else: pass clause as I
think of it, so it will just keep
That is an attempt to catch the death of the thread. I guess I'm not
taking the right steps ;-)
Bernard
Liam Clarke wrote:
I'm sorry, but when does oThread get the value 1?
If you're testing for it's existence via a True/False thing, try
if oThread:
But otherwise, I'm not sure what you're expec
On Feb 16, 2005, at 02:36, Liam Clarke wrote:
I'm sorry, but when does oThread get the value 1?
If you're testing for it's existence via a True/False thing, try
if oThread:
But otherwise, I'm not sure what you're expecting to get.
Once again, you hit the spot, Liam. It seems that a Thread object
I'm sorry, but when does oThread get the value 1?
If you're testing for it's existence via a True/False thing, try
if oThread:
But otherwise, I'm not sure what you're expecting to get.
On Tue, 15 Feb 2005 20:58:15 -0500, Bernard Lebel
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have already m
On Feb 16, 2005, at 01:58, Bernard Lebel wrote:
Now, I have a list of "jobs", each job being a windows bat file that
launches an executable and performs a rendering task. So I have this
queue of jobs, and would like to launch one only when the previous one
has finished, and in a separate window.
Hello,
I have already messed a little with simple thread programming, wich took
this form:
from threading import Thread
def mainFunction():
pass
Thread( target=mainFunction ).start()
Now, I have a list of "jobs", each job being a windows bat file that
launches an executable and performs