[issue38612] some non-ascii charcters link to same identifier/data

2019-10-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: Its also documented here: https://docs.python.org/3/reference/lexical_analysis.html#identifiers -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue38612] some non-ascii charcters link to same identifier/data

2019-10-28 Thread Steven D'Aprano
Steven D'Aprano 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 (φ)

[issue38612] some non-ascii charcters link to same identifier/data

2019-10-28 Thread Richard Pausch
Change by Richard Pausch : -- components: +Unicode nosy: +ezio.melotti, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38612] some non-ascii charcters link to same identifier/data

2019-10-28 Thread Richard Pausch
New submission from Richard Pausch : The issue was first reported in https://github.com/ipython/ipython/issues/11918. Some non-ascii characters like φ (\u03c6) and ϕ (\u03d5) map/link to the same data/identifier. ```python ϕ = 1 φ = 2 print(ϕ) # results in 2 - should be 1 print(φ) # results