Message151601
2012/1/18 Jim Jewett <report@bugs.python.org>:
>
> Jim Jewett <jimjjewett@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. |
|
Date |
User |
Action |
Args |
2012-01-19 01:06:31 | benjamin.peterson | set | recipients:
+ benjamin.peterson, ezio.melotti, Jim.Jewett |
2012-01-19 01:06:30 | benjamin.peterson | link | issue13821 messages |
2012-01-19 01:06:30 | benjamin.peterson | create | |
|