[Python-Dev] more unicode: \U support?

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Thu, 27 Jul 2000 21:05:01 +0200

tim wrote:
> [/F]
> > would it be a good idea to add \UXXXXXXXX
> > (8 hex digits) to 2.0?
> >
> > (only characters in the 0000-ffff range would
> > be accepted in the current version, of course).
> In which case there seems darned little point to it now <wink/frown>.

with Python's approach to escape codes, it's not exactly easy
to *add* a new escape code -- you risk breaking code that for
some reason (intentional or not) relies on u"\U12345678" to end
up as a backslash followed by 9 characters...

not very likely, but I've seen stranger things...

(btw, can you walk over to Guido's office and tell him why \x
should ignore anything but the last two hex digits, no matter
what string type we're using...)