[issue2557] \u and \U in raw strings have reverted

Guido van Rossum report at bugs.python.org
Sat Apr 5 16:45:36 CEST 2008


New submission from Guido van Rossum <guido at python.org>:

In 2.x, \uDDDD and \UDDDDDDDD are interpreted as Unicode escapes in
raw Unicode strings. That was a mistake, but we can't fix it (except
when using "from __future__ import unicode_literals"). In 3.0, \u or
\U in a raw string should have no special meaning -- it's just a
backslash followed by 'u' or 'U'.

This was fixed in 3.0a3. It seems to have reverted to the old (2.x)
behavior in 3.0a4.

THIS MUST BE FIXED!

----------
messages: 64977
nosy: gvanrossum
priority: release blocker
severity: normal
status: open
title: \u and \U in raw strings have reverted
type: behavior
versions: Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2557>
__________________________________


More information about the Python-bugs-list mailing list