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
Date 2011-03-09.10:44:21
SpamBayes Score 1.731737e-10
Marked as misclassified No
Message-id <1299667462.56.0.200931493891.issue1271@psf.upfronthosting.co.za>
In-reply-to
Content
(Not clear how to reopen this issue. Hopefully my change here does that.)

OK, so as it currently stands, backslash at end of string is prohibited in the interests of allowing backslash to escape quotes that might be embedded within the string. 

But the embedded quote scenario doesn't work because the backslash remains in the string.  So the current state of play is plain broken.  

Considering:
(a) We already have the ability to use either single or double quotes around the string which gives that chance to use the other quote within the string. 
(b) The "principle of least surprise" for raw string would be to have raw mean "Never Escape Anything"
(c) backslash on end of string is a trap waiting to happen for Windows users.
...I think there is strong motivation to abandon the currently broken "backslash escapes quote" behavior and just let raw strings be totally raw.  Furthermore, it's hard to imagine that such a move would break anything.
History
Date User Action Args
2011-03-09 10:44:22gwidemansetrecipients: + gwideman, georg.brandl, facundobatista, QuantumTim
2011-03-09 10:44:22gwidemansetmessageid: <1299667462.56.0.200931493891.issue1271@psf.upfronthosting.co.za>
2011-03-09 10:44:21gwidemanlinkissue1271 messages
2011-03-09 10:44:21gwidemancreate