On Feb 26, 8:45 am, rmano <[EMAIL PROTECTED]> wrote: > BTW, 2to3.py should warn when a raw string (not unicode) with \u in > it, I think. > I tried it and it seems to ignore the problem...
Python 3.0a3+ (py3k:61229, Mar 4 2008, 21:38:15) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> r"\u" '\\u' >>> r"\uparrow" '\\uparrow' >>> r"\u005c" '\\u005c' >>> r"\N{REVERSE SOLIDUS}" '\\N{REVERSE SOLIDUS}' >>> "\u005c" '\\' >>> "\N{REVERSE SOLIDUS}" '\\' 2to3.py may be ignoring a problem, but existing raw 8-bit string literals containing a '\u' aren't going to be it. If anything is going to have a problem with conversion to Py3k at this point, it is raw Unicode literals that contain a Unicode escape. -- http://mail.python.org/mailman/listinfo/python-list