[Python-Dev] String methods... finally

Guido van Rossum guido at CNRI.Reston.VA.US
Wed Jun 16 01:20:07 CEST 1999

> How do endian issues fit in with \u?

I would assume that it uses the same rules as hex and octal numeric
literals: these are always *written* in big-endian notation, since
that is also what we use for decimal numbers.  Thus, on a
little-endian machine, the short integer 0x1234 would be stored as the
bytes {0x34, 0x12} and so would the string literal "\x1234".

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list