[Python-Dev] eval and triple quoted strings
Walter Dörwald
walter at livinglogic.de
Mon Jun 17 19:14:52 CEST 2013
More information about the Python-Dev mailing list
Mon Jun 17 19:14:52 CEST 2013
- Previous message: [Python-Dev] eval and triple quoted strings
- Next message: [Python-Dev] eval and triple quoted strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 17.06.13 19:04, Walter Dörwald wrote:
> Hmm, it seems that codecs.unicode_escape_decode() does what I want:
>
> >>> codecs.unicode_escape_decode("\r\n\\r\\n\\x0d\\x0a\\u000d\\u000a")
> ('\r\n\r\n\r\n\r\n', 26)
Hmm, no it doesn't:
>>> codecs.unicode_escape_decode("\u1234")
('á\x88´', 3)
Servus,
Walter
- Previous message: [Python-Dev] eval and triple quoted strings
- Next message: [Python-Dev] eval and triple quoted strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list