[issue41542] module `__all__` cannot detect function name with `φ`

2020-08-14 Thread Seth Woodworth
Seth Woodworth added the comment: @Steven, I'm exploring what unicode code points can be used as valid starting characters for identifiers. I'm looping over the code point ranges with the XID_START property and attempting to add them to globals() to see if they maintain

[issue41542] module `__all__` cannot detect function name with `φ`

2020-08-13 Thread Seth Woodworth
Seth Woodworth added the comment: I don't think it is worth throwing a warning. This might be the desired, or at least allowed, behavior. I'm relying on the behavior in a toy library I'm working on. -- ___ Python

[issue41542] module `__all__` cannot detect function name with `φ`

2020-08-13 Thread Seth Woodworth
Seth Woodworth added the comment: 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 retur