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 r.david.murray
Recipients Daniel.U..Thibault, docs@python, georg.brandl, r.david.murray
Date 2014-02-20.14:22:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392906146.82.0.696557538908.issue20686@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks, yes, Georg already pointed out the issue with print.  I suppose that this is something that changed at some point in Python2's history but this bit of the docs was not updated.

Python can write anything to a file, you just have to tell it what encoding to use, either by explicitly encoding the unicode to binary before writing it to the file, or by using codecs.open and specifying an encoding for the file.  (This is all much easier in python3, where the unicode support is part of the core of the language.)
History
Date User Action Args
2014-02-20 14:22:26r.david.murraysetrecipients: + r.david.murray, georg.brandl, docs@python, Daniel.U..Thibault
2014-02-20 14:22:26r.david.murraysetmessageid: <1392906146.82.0.696557538908.issue20686@psf.upfronthosting.co.za>
2014-02-20 14:22:26r.david.murraylinkissue20686 messages
2014-02-20 14:22:26r.david.murraycreate