Ezio Melotti <ezio.melo...@gmail.com> added the comment: 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.
---------- nosy: +ezio.melotti stage: -> committed/rejected type: -> behavior _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13185> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com