Re: Is unicode_escape broken?

2005-12-13 Thread Mark Mc Mahon
On 12/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I also believe this is a bug.Here's an even shorter demonstration of the behavior: >>> u"\\".encode("unicode_escape").decode("unicode_escape")Traceback (most recent call last):  File "", line 1, in ?UnicodeDecodeError: 'unicodeescape' codec

Re: Is unicode_escape broken?

2005-12-13 Thread jepler
I also believe this is a bug. Here's an even shorter demonstration of the behavior: >>> u"\\".encode("unicode_escape").decode("unicode_escape") Traceback (most recent call last): File "", line 1, in ? UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 0: \ at end of str

Is unicode_escape broken?

2005-12-13 Thread mtnBikingMark
Hi, I am confused by unicode_escape functionality - it doesn't seem to follow string_escape functionality. I would expect that given the same string (or at least a non-unicode and unicode string appropriately) that they would produce more or less the same output, but: >>> "\t\\t".encode('string