Issue 22328: ur'foo\d' raises SyntaxError (original) (raw)

Issue22328

Created on 2014-09-02 20:55 by untitaker, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg226281 - (view) Author: Markus Unterwaditzer (untitaker) Date: 2014-09-02 20:55
The string literal `ur'foo\d'` causes a SyntaxError while the equivalent `r'foo\d'` causes the correct string to be produced.
msg226282 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-09-02 20:59
This is a conscious design decision. See issue 15096.
History
Date User Action Args
2022-04-11 14:58:07 admin set github: 66524
2014-09-02 20:59:57 r.david.murray set status: open -> closedsuperseder: Drop support for the "ur" string prefixnosy: + r.david.murraymessages: + resolution: not a bugstage: resolved
2014-09-02 20:55:18 untitaker create