[Python-Dev] \u and \U escapes in raw unicode string literals (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Fri May 11 00:50:23 CEST 2007
- Previous message: [Python-Dev] \u and \U escapes in raw unicode string literals
- Next message: [Python-Dev] \u and \U escapes in raw unicode string literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
However, I understand the other reason (inclusion of non-ASCII characters in raw strings) and I reluctantly agree with it.
I actually disagree with that. It is fairly easy to include non-ASCII characters in a raw Unicode string - just type them in. Or, if that fails, use string concatenation with a non-raw string:
r"foo\uhallo" "\u20ac" r"welt"
Regards, Martin
- Previous message: [Python-Dev] \u and \U escapes in raw unicode string literals
- Next message: [Python-Dev] \u and \U escapes in raw unicode string literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]