Python doesn't recognize quote types

wxPythoner at gmail.com wxPythoner at gmail.com
Sat May 10 16:56:39 EDT 2008


There's a thing that bugs me in Python. Look at this...

>>> 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? Is
quote type (single quote and double quote) recognition not implemented
in Python?



More information about the Python-list mailing list