Sorry, no, there is no such thing. In string literals, anyway ... you could build another encoding scheme like HTML:
>>> import HTMLParser
>>> HTMLParser.HTMLParser().unescape(u'a ä b c')
u'a \xe4 b'
But I don’t think it was worth it.
It is unlikely that anyone even uses the notation \Nanyway ... for a random character, notation is permissible \xnn; for more active use, you'd better just type ädirectly and make sure that << 24> is defined in the script by PEP263 . (If you do not have a keyboard layout that can type these diacritical characters directly, get one of them, for example, eurokb on Windows, or using the Compose key on Linux.)
source
share