[issue13185] Why does Python interpreter care about curvy quotes in comments?

Ezio Melotti report at bugs.python.org
Mon Oct 17 07:12:18 CEST 2011


Ezio Melotti <ezio.melotti at 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 <report at bugs.python.org>
<http://bugs.python.org/issue13185>
_______________________________________


More information about the Python-bugs-list mailing list