Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: >>> import unicodedata >>> unicodedata.lookup('KEYCAP NUMBER SIGN') '#️' >>> print(ascii(unicodedata.lookup('KEYCAP NUMBER SIGN'))) '#\ufe0f\u20e3'
Support of Unicode Named Character Sequences in the unicodeescape codec and in the RE parser would be a new feature. ---------- components: +Interpreter Core, Unicode nosy: +serhiy.storchaka, vstinner type: behavior -> enhancement versions: +Python 3.11 -Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46410> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com