Re: [Tutor] how to run function only for a pre-defined time

2007-10-28 Thread Vinu Vikram
Hi alan Thanks. But if I write a code like the followiing, how I can stop the thread #!/usr/bin/env python import threading import time, os class Infi(threading.Thread): def __init__(self, a): self.a = a threading.Thread.__init__(self) def run(self): i = 1 while i==1: pri

Re: [Tutor] how to run function only for a pre-defined time

2007-10-27 Thread Alan Gauld
"Vinu Vikram" <[EMAIL PROTECTED]> wrote > Could anybody try to tell me whether it is possible to run a > function only > for a particular time period. In my python script I call some third > party > function which some time won't give results. I would like to write > the > script in such a way

[Tutor] how to run function only for a pre-defined time

2007-10-27 Thread Vinu Vikram
Hi All Could anybody try to tell me whether it is possible to run a function only for a particular time period. In my python script I call some third party function which some time won't give results. I would like to write the script in such a way that, it will wait for the result from this functio