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

Phillip Feldman report at bugs.python.org
Sat Oct 15 07:18:25 CEST 2011


New submission from Phillip Feldman <phillip.m.feldman at gmail.com>:

When I try to run a Python script that contains curvy quotes inside comments, the interpreter gets upset:

SyntaxError: Non-ASCII character '\x92' in file ... on line 20198, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

Given that the quotes are appearing only in comments, why does the interpreter care about them?  Why should it be doing anything at all with comments other than stripping them off?

----------
messages: 145583
nosy: Phillip.M.Feldman
priority: normal
severity: normal
status: open
title: Why does Python interpreter care about curvy quotes in comments?

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13185>
_______________________________________


More information about the Python-bugs-list mailing list