[Chicago] FW: strange None tailing
shangyu
yushang at outlook.com
Fri Apr 12 04:45:53 CEST 2013
Sorry , the correct code is
def test(f): print >>f, "zzzz"
def main(): f = open("test.cfg","w") test(f) f.close()
From: yushang at outlook.com
To: chicago at python.org
Subject: strange None tailing
Date: Fri, 12 Apr 2013 10:41:44 +0800
Hi dear all,I've wrote the following Python code :
def test(f): print >>f, "zzzz"
def main(): f = open("test.cfg","w") test(f) f.close(when open the test.cfg file I got the following lineszzzzNone
Why there is such a strange None output ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20130412/48d569f3/attachment.html>
More information about the Chicago
mailing list