Jim Jewett <[email protected]> added the comment:
My preference would be for non_NFKC.isidentifier() to return False, but that
may be a problem for backwards compatibility.
It *may* be worth adding an asidentifier() method that returns either False or
the canonicalized string that should be used instead.
At a minimum, the documentation (including docstring) should warn that the
method doesn't check for NFKC form, and that if the input is not ASCII, the
caller should first ensure this by calling str1=unicodedata.normalize("NFKC",
str1)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13821>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com