mysslim ze lepsie je pouzit novy thread:
import thread, time
def do1000():
var=True
i=1
while var:
print i
i=i+1
time.sleep(0.1)
if i>1000:
var=False
thread.start_new_thread(do1000, () )