Hello list

I notice a difference between running the following script on my Mac and on
a PC:

from time import sleep
for i in range(10):
   print i,
   sleep(2)

On my PC this prints a number every 2 seconds. This is the behavior I want.

On my Mac Python waits 10*2 = 20 seconds, and then prints 0 1 2 3 4 5 6 7 8
9

Any thoughts on how I can make Python behave to get the Python behavior of
my PC on my Mac?

Thanks,

Mark
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to