"\n" in unicode vs "regular" string: is this normal?

Jeff Epler jepler at unpythonic.net
Wed Jan 29 09:16:37 EST 2003


On Wed, Jan 29, 2003 at 12:25:58PM +0100, Eric Brunel wrote:
> Hi all,
> 
> Consider the following class:
[snip]

This can be demonstrated with slightly simpler code:
>>> class D:
...     def __repr__(self): return unicode("\r\n\t\01\u1234\U12345678")
... 
>>> D()
\r\n\t\x01\u1234\U12345678





More information about the Python-list mailing list