Hi Walter, > https://github.com/python/cpython/commit/a8bf44d04915f7366d9f8dfbf84822ac37a4bab3
Le mar. 6 oct. 2020 à 17:02, Walter Dörwald <[email protected]> a écrit : > It would be even simpler to use unicodedata.lookup() which returns the > unicode character when passed the name of the character That was my first idea as well when I reviewed the change, but the function contains this comment: def checkletter(self, name, code): # Helper that put all \N escapes inside eval'd raw strings, # to make sure this script runs even if the compiler # chokes on \N escapes test_named_sequences_full() checks that unicodedata.lookup() works, but that checkletter() raises a SyntaxError. Look at the code ;-) Victor -- Night gathers, and now my watch begins. It shall not end until my death. _______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/LNZSHNATY7MSO5JKHELR433TCJ7ZZ5YR/ Code of Conduct: http://python.org/psf/codeofconduct/
