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 ezio.melotti
Recipients Phillip.M.Feldman, Phillip.M.Feldman@gmail.com, ezio.melotti, loewis
Date 2011-10-17.05:12:17
SpamBayes Score 5.727062e-10
Marked as misclassified No
Message-id <1318828338.51.0.621616053229.issue13185@psf.upfronthosting.co.za>
In-reply-to
Content
In theory, with some encodings you can't even know where the line (and the comment) ends if you don't decode first.  Also it doesn't seem worth  to me changing the way files are parsed just for this use case.
Assuming you are using UTF-8 (and you should), you shouldn't have any problem with Python 3, since it opens files using UTF-8 by default.  It's anyway always better to be specific about the encoding you are using.
History
Date User Action Args
2011-10-17 05:12:18ezio.melottisetrecipients: + ezio.melotti, loewis, Phillip.M.Feldman@gmail.com, Phillip.M.Feldman
2011-10-17 05:12:18ezio.melottisetmessageid: <1318828338.51.0.621616053229.issue13185@psf.upfronthosting.co.za>
2011-10-17 05:12:17ezio.melottilinkissue13185 messages
2011-10-17 05:12:17ezio.melotticreate