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 gwideman
Recipients QuantumTim, facundobatista, georg.brandl, gwideman, r.david.murray, v+python
Date 2011-03-12.12:36:58
SpamBayes Score 0.0011498118
Marked as misclassified No
Message-id <1299933419.73.0.263362568707.issue1271@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks to all for your patient comments. I think I am resigned to raw-string forever being medium-rare-string :-).

Perhaps it's obvious once you get over the initial shock of non-rawness, but workarounds for the disallowed trailing backslash  include (note the final space character):

mydir = r"C:\somedir\ ".rstrip()   or...

mydir = r"C:\somedir\ "[:-1]

It might be worth mentioning one of these in the raw string docs to emphasize that there is this gotcha, that it's easy to fix, and prompting this as an idiom that becomes familiar in applications where it's needed.
History
Date User Action Args
2011-03-12 12:36:59gwidemansetrecipients: + gwideman, georg.brandl, facundobatista, QuantumTim, v+python, r.david.murray
2011-03-12 12:36:59gwidemansetmessageid: <1299933419.73.0.263362568707.issue1271@psf.upfronthosting.co.za>
2011-03-12 12:36:59gwidemanlinkissue1271 messages
2011-03-12 12:36:58gwidemancreate