No newline using printf
Sybren Stuvel
sybrenUSE at YOURthirdtower.com.imagination
Fri Sep 16 02:58:16 EDT 2005
Johnny Lee enlightened us with:
> Why the prompt followed after the output? Maybe it's not as
> expected.
Because it did what you ask of it: write "012" to stdout, and nothing
else. Hence, no newline at the end, hence the prompt is on the same
line.
Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
More information about the Python-list
mailing list