Benjamin Peterson <benja...@python.org> added the comment: 2012/1/18 Jim Jewett <rep...@bugs.python.org>: > > Jim Jewett <jimjjew...@gmail.com> added the comment: > > My preference would be for non_NFKC.isidentifier() to return False
It *is* an identifier, though. Python will happily accept it. > > 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) Sounds fine to me. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13821> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com