This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients 846909323, amaury.forgeotdarc
Date 2011-04-07.09:36:46
SpamBayes Score 8.8448345e-05
Marked as misclassified No
Message-id <1302169008.68.0.811353608243.issue11793@psf.upfronthosting.co.za>
In-reply-to
Content
This is by design and documented:
http://docs.python.org/reference/lexical_analysis.html

"""
String quotes can be escaped with a backslash, but the backslash remains in the string; for example, r"\"" is a valid string literal consisting of two characters: a backslash and a double quote; r"\" is not a valid string literal (even a raw string cannot end in an odd number of backslashes).
Specifically, a raw string cannot end in a single backslash (since the backslash would escape the following quote character). Note also that a single backslash followed by a newline is interpreted as those two characters as part of the string, not as a line continuation.
"""
History
Date User Action Args
2011-04-07 09:36:48amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, 846909323
2011-04-07 09:36:48amaury.forgeotdarcsetmessageid: <1302169008.68.0.811353608243.issue11793@psf.upfronthosting.co.za>
2011-04-07 09:36:46amaury.forgeotdarclinkissue11793 messages
2011-04-07 09:36:46amaury.forgeotdarccreate