difference in printing to screen Mac / Windows
Mark Bakker
markbak at gmail.com
Sat Jul 18 06:21:57 EDT 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090718/1cfdfa7f/attachment.html>
More information about the Python-list
mailing list