Simple (?) question about print statement

Dan M dan at wolf.com
Wed Dec 14 18:48:26 EST 2005


On Wed, 14 Dec 2005 15:27:58 -0800, TY wrote:

> So I guess then my next question is why does adding comma to print
> statement cause buffering, but not when you don't have comma?

Because of the line buffering. If you don't have a comma at the end, the
print statement prints the numeric value and a newline, which signals the
end of the line.




More information about the Python-list mailing list