Message375331
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' |
|
Date |
User |
Action |
Args |
2020-08-13 19:23:48 | sethwoodworth | set | recipients:
+ sethwoodworth, vstinner, ezio.melotti, tianrluo |
2020-08-13 19:23:48 | sethwoodworth | set | messageid: <1597346628.85.0.809706598799.issue41542@roundup.psfhosted.org> |
2020-08-13 19:23:48 | sethwoodworth | link | issue41542 messages |
2020-08-13 19:23:48 | sethwoodworth | create | |
|