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 sethwoodworth
Recipients ezio.melotti, sethwoodworth, tianrluo, vstinner
Date 2020-08-13.19:23:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597346628.85.0.809706598799.issue41542@roundup.psfhosted.org>
In-reply-to
Content
As described in PEP3131, unicode identifiers are normalized via NFKC before being added to the globals, and presumably __all__ as in your example.

You can see what python _did_ add via unicodedata.normalize('NFKC', 'ϕ') which returns 'φ'


[ins] In [8]: bytes('φ', 'utf8')                                                                                                                                
Out[8]: b'\xcf\x86'

[ins] In [9]: bytes('ϕ', 'utf8')                                                                                                                                
Out[9]: b'\xcf\x95'

The normalized version of Phi, I _can_ add to my globals: 
globals()['φ'] = 'foo'
History
Date User Action Args
2020-08-13 19:23:48sethwoodworthsetrecipients: + sethwoodworth, vstinner, ezio.melotti, tianrluo
2020-08-13 19:23:48sethwoodworthsetmessageid: <1597346628.85.0.809706598799.issue41542@roundup.psfhosted.org>
2020-08-13 19:23:48sethwoodworthlinkissue41542 messages
2020-08-13 19:23:48sethwoodworthcreate