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 tim.peters
Recipients eric.smith, gregory.p.smith, martin.panter, tim.peters, vstinner
Date 2017-08-08.02:28:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502159308.27.0.388804026795.issue31136@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, I'm closing as not-a-bug.  It's been this way (and documented) forever.  More specifically, as the docs say, a raw string can't end with an _odd_ number of backslashes:

"""
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).
"""
History
Date User Action Args
2017-08-08 02:28:28tim.peterssetrecipients: + tim.peters, gregory.p.smith, vstinner, eric.smith, martin.panter
2017-08-08 02:28:28tim.peterssetmessageid: <1502159308.27.0.388804026795.issue31136@psf.upfronthosting.co.za>
2017-08-08 02:28:28tim.peterslinkissue31136 messages
2017-08-08 02:28:27tim.peterscreate