[New-bugs-announce] [issue13185] Why does Python interpreter care about curvy quotes in comments?
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?
title: Why does Python interpreter care about curvy quotes in comments?
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce