[issue5447] future unicode literals and r'\u'
Zach Hirsch
report at bugs.python.org
Mon Mar 9 09:55:15 CET 2009
Zach Hirsch <zhirsch at umich.edu> added the comment:
I've hit this, too, and it's annoyed me. So here's a patch against trunk
that should fix it.
The idea is: whenever unicode_literals are turned on (or the -U command
line flag is passed), to convert r"\u" to "\u005c\u0075" and r"\U" to
"\u005c\u0055" for every string literal in the source file before
passing the string to PyUnicode_DecodeRawUnicodeEscape.
----------
keywords: +patch
message_count: 2.0 -> 3.0
nosy: +zhirsch
nosy_count: 2.0 -> 3.0
Added file: http://bugs.python.org/file13280/raw-unicode-literals.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5447>
_______________________________________
More information about the Python-bugs-list
mailing list