Blank Line at Program Exit
davea at ieee.org
Sat Aug 22 16:51:08 CEST 2009
Steven Woody wrote:
> Any python program, even that does absolutely nothing in the code, will
> cause a blank line printed out when the program exit. What's the reason?
I think the "blank line" is coming from your shell. In Windows, I
believe the shell emits a newline after running a program, probably to
make sure the prompt starts in column 0.
Note that if your python program writes a partial line to stdout, this
will "finish" the line before giving you the next prompt. So the line
isn't necessarily blank.
More information about the Python-list