This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skip.montanaro
Recipients baloan, eric.araujo, sjmachin, skip.montanaro, zacktu
Date 2010-12-24.16:38:56
SpamBayes Score 2.3814334e-06
Marked as misclassified No
Message-id <1293208738.6.0.150713575702.issue7198@psf.upfronthosting.co.za>
In-reply-to
Content
John,

The API for the open() builtin function has changed.  You should open
the output file with newline="" instead of using the default.  Take a
look at the documentation for open() and csv.reader:

    http://docs.python.org/py3k/library/functions.html?highlight=open#open
    http://docs.python.org/py3k/library/csv.html?highlight=csv.reader#csv.reader

Note the form of the open() call in the csv.reader example.  This one
snuck by me as well.  Python 3 underwent a lot of change in the I/O
subsystem.  This was one of them.  If changing the form of the open()
call doesn't fix the problem, let me know.

Skip
History
Date User Action Args
2010-12-24 16:38:58skip.montanarosetrecipients: + skip.montanaro, sjmachin, baloan, eric.araujo, zacktu
2010-12-24 16:38:58skip.montanarosetmessageid: <1293208738.6.0.150713575702.issue7198@psf.upfronthosting.co.za>
2010-12-24 16:38:56skip.montanarolinkissue7198 messages
2010-12-24 16:38:56skip.montanarocreate