[New-bugs-announce] [issue2816] Quote-type recognition bug

Chester report at bugs.python.org
Sun May 11 09:26:24 CEST 2008

New submission from Chester <wxpythoner at gmail.com>:

Let's make an intentional syntax error...

>>> print "Testing\"
SyntaxError: EOL while scanning single-quoted string

Please focus on the part of the error message that states "while
scanning single-quoted string". How can Python claim it scanned a
single-quoted string when I fed it with a double-quoted string? That is
a quote type recognition bug in Python which should be fixed.

The error message in this case should, however, be:

SyntaxError: EOL while scanning double-quoted string

messages: 66607
nosy: chester
severity: normal
status: open
title: Quote-type recognition bug
versions: Python 2.5

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list