This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin.peterson
Recipients Jim.Jewett, benjamin.peterson, ezio.melotti
Date 2012-01-19.01:06:30
SpamBayes Score 0.00046555692
Marked as misclassified No
Message-id <CAPZV6o8RkKbfHkizf9o4qfvACLEDK-GbSPwaxeRK3WE0wR=C=g@mail.gmail.com>
In-reply-to <1326935113.08.0.846670743641.issue13821@psf.upfronthosting.co.za>
Content
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.
History
Date User Action Args
2012-01-19 01:06:31benjamin.petersonsetrecipients: + benjamin.peterson, ezio.melotti, Jim.Jewett
2012-01-19 01:06:30benjamin.petersonlinkissue13821 messages
2012-01-19 01:06:30benjamin.petersoncreate