Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:

This is an intentional feature: identifiers are normalised using NFKC 
normalization.

    py> from dis import dis
    py> dis(compile('ϕ=1', '', 'single'))
      1           0 LOAD_CONST               0 (1)
                  3 STORE_NAME               0 (φ)
                  6 LOAD_CONST               1 (None)
                  9 RETURN_VALUE
    py> from unicodedata import normalize
    py> normalize('NFKC', 'ϕ')
    'φ'


So not a bug.

----------
nosy: +steven.daprano

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38612>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to