print 'foo',
time.sleep(1)
print 'bar'
This seems to run time.sleep(1)
first, then prints "foo bar"
all at once.
However, printing both foo
and bar
on its own lines produces the expected delay between the print statements:
print 'foo'
time.sleep(1)
print 'bar'
Is there something that stacks all print statements until a new line character is received?