Blank Line at Program Exit

Steven Woody narkewoody at gmail.com
Sun Aug 23 09:07:53 EDT 2009


On Sat, Aug 22, 2009 at 11:25 PM, Nitebirdz <nitebirdz at sacredchaos.com>wrote:

> On Thu, Aug 20, 2009 at 01:31:14PM +0800, Steven Woody wrote:
> > Hi,
> > 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?
> >  Thanks.
> >
>
> Chances are it is related to whichever operating system and/or shell you
> are using.  For instance, this is taken from a system running Ubuntu
> Linux 8.04:
>
> -------------------------------------------------
> laptop:$ cat hello.py
> #!/usr/bin/env python
>
> print "Hello, there!"
> laptop:$ ./hello.py
> Hello, there!
> laptop:$ cat nothing.py
> #!/usr/bin/env python
>
> laptop:$ ./nothing.py
> laptop:$
> -------------------------------------------------
>
>
> As you can see, no blank line was printed out.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Hi,
I am using cywin on XP.

-- 
Life is the only flaw in an otherwise perfect nonexistence
   -- Schopenhauer

narke
public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090823/dd572e1a/attachment-0001.html>


More information about the Python-list mailing list