Tal Einat added the comment:
Bah, I messed up the code sample in my previous message. It was supposed to be:
from unicodedata import normalize, category
norm_char_first = normalize(char)[0]
is_id_first_char = (
norm_char_first == '_' or
category(norm_char_first) in {"Lu", "Ll", "Lt", "Lm", "Lo", "Nl"}
)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue21765>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com