[issue10952] Don't normalize module names to NFKC?

STINNER Victor report at bugs.python.org
Thu Jan 20 04:02:22 CET 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> This won't be a problem if you make 
> "import \xB5Torrent" 
> behave as (...)
> "\u03BCTorrent =  __import__('\xB5Torrent')"

"import name" is compiled to "IMPORT_NAME(name); STORE_NAME(name)" bytecode instructions. So you proposed to compile it to "IMPORT_NAME(name); STORE_NAME(normalized_name)" if name is different than the normalized name. Ok, I think that it is possible.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10952>
_______________________________________


More information about the Python-bugs-list mailing list