[issue3298] Multiline string with quotes is not parsed correctly.
Georg Brandl
report at bugs.python.org
Sun Jul 6 15:24:55 CEST 2008
Georg Brandl <georg at python.org> added the comment:
There is an ambiguity: did you mean """ " or " """ (spaces added for
clarity). Python does not count quotes, parentheses or similar in
strings, so the first occurrence of """ will close the literal.
You can either use triple single quotes, or escape the first quote, like
that: """A "test\"""".
----------
nosy: +georg.brandl
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3298>
_______________________________________
More information about the Python-bugs-list
mailing list