homepage

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 Jim.Jewett
Recipients Jim.Jewett, ezio.melotti
Date 2012年01月19日.00:54:18
SpamBayes Score 0.007179914
Marked as misclassified No
Message-id <1326934459.59.0.614334427327.issue13821@psf.upfronthosting.co.za>
In-reply-to
Content
Python identifiers are in NFKC form; string method .isidentifier() returns true on strings that are not in that form. In some contexts, these non-canonical strings will be replaced with their NFKC equivalent, but in other contexts (such as the builtins hasattr, getattr, delattr) they will not.
>>> cha=chr(170)
>>> cha
'a'
>>> cha.isidentifier()
True
>>> uc.normalize("NFKC", cha)
'a'
>>> obj.a = 5
>>> hasattr(obj, "a")
False
>>> obj.a
5
History
Date User Action Args
2012年01月19日 00:54:19Jim.Jewettsetrecipients: + Jim.Jewett, ezio.melotti
2012年01月19日 00:54:19Jim.Jewettsetmessageid: <1326934459.59.0.614334427327.issue13821@psf.upfronthosting.co.za>
2012年01月19日 00:54:18Jim.Jewettlinkissue13821 messages
2012年01月19日 00:54:18Jim.Jewettcreate

AltStyle によって変換されたページ (->オリジナル) /