Message126577
The Python 3 parser normalizes all identifiers using NFKC (as described in the PEP 3131). Examples:
- U+00B5 (µ: Micro sign) is normalized to U+03BC (μ: Greek small letter mu)
- U+FB03 (ffi: Latin small ligature ffi) is normalized to 'ffi'
The problem is that it does also normalize module names, but not the filename.
The module name in the Python source code is written with the keyboard (eg. U+00B5 in my case) and then normalized to NFKC (=> U+03BC). The filename is also written using the keyboard (U+00B5), but it is never normalized.
Attached script tests the current behaviour using "µTorrent" name with U+00B5 and U+03BC: import with U+00B5 or U+03BC use the filename with U+03BC.
The problem is that I'm able to write 'µ' (U+00B5) with my keyboard, but not U+03BC (μ). |
|
Date |
User |
Action |
Args |
2011-01-20 01:54:59 | vstinner | set | recipients:
+ vstinner |
2011-01-20 01:54:59 | vstinner | set | messageid: <1295488499.02.0.313090900295.issue10952@psf.upfronthosting.co.za> |
2011-01-20 01:54:54 | vstinner | link | issue10952 messages |
2011-01-20 01:54:54 | vstinner | create | |
|