<div class="gmail_quote">On Sat, Aug 22, 2009 at 11:25 PM, Nitebirdz <span dir="ltr"><<a href="mailto:nitebirdz@sacredchaos.com">nitebirdz@sacredchaos.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Aug 20, 2009 at 01:31:14PM +0800, Steven Woody wrote:<br>
> Hi,<br>
> Any python program, even that does absolutely nothing in the code, will<br>
> cause a blank line printed out when the program exit.  What's the reason?<br>
>  Thanks.<br>
><br>
<br>
</div>Chances are it is related to whichever operating system and/or shell you<br>
are using.  For instance, this is taken from a system running Ubuntu<br>
Linux 8.04:<br>
<br>
-------------------------------------------------<br>
laptop:$ cat hello.py<br>
#!/usr/bin/env python<br>
<br>
print "Hello, there!"<br>
laptop:$ ./hello.py<br>
Hello, there!<br>
laptop:$ cat nothing.py<br>
#!/usr/bin/env python<br>
<br>
laptop:$ ./nothing.py<br>
laptop:$<br>
-------------------------------------------------<br>
<br>
<br>
As you can see, no blank line was printed out.<br>
<font color="#888888"><br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>Hi, <div><br></div><div>I am using cywin on XP.<br><div><br>-- <br>Life is the only flaw in an otherwise perfect nonexistence<br>    -- Schopenhauer<br><br>narke<br>public key at <a href="http://subkeys.pgp.net:11371">http://subkeys.pgp.net:11371</a> (<a href="mailto:narkewoody@gmail.com">narkewoody@gmail.com</a>)<br>

</div></div>