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.

classification
Title: ur'foo\d' raises SyntaxError
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder: Drop support for the "ur" string prefix
View: 15096
Assigned To: Nosy List: r.david.murray, untitaker
Priority: normal Keywords:

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:07adminsetgithub: 66524
2014-09-02 20:59:57r.david.murraysetstatus: open -> closed

superseder: Drop support for the "ur" string prefix

nosy: + r.david.murray
messages: + msg226282
resolution: not a bug
stage: resolved
2014-09-02 20:55:18untitakercreate