[issue42680] unicode identifiers not accessible or assignable through globals()

2020-12-18 Thread Martin Chase
Martin Chase added the comment: Ah! So then the proper code for me would be e.g.: ``` >>> globals()[unicodedata.normalize("NFKC", "µmeow")] 1e-06 ``` Yes, it's clear when I read https://www.python.org/dev/peps/pep-3131/ that the normalization is going to ha

[issue42680] unicode identifiers not accessible or assignable through globals()

2020-12-18 Thread Martin Chase
Martin Chase added the comment: Oh, I just gave a cursory using `locals()`, and the same misbehavior is present. A workaround, for anyone needing to assign or access unicode globals, is to use `exec`, e.g. `exec("µmeow = 1e-6"

[issue42680] unicode identifiers not accessible or assignable through globals()

2020-12-18 Thread Martin Chase
New submission from Martin Chase : This behavior is best described by the code below: ``` >>> meow = 1 >>> 'meow' in globals() True >>> µmeow = 1e-6 >>> 'µmeow' in globals() False >>> globals()['woof'] = 1 >>> woof 1 >>> globa