[Python-Dev] Import and unicode: part two

Alexander Belopolsky alexander.belopolsky at gmail.com
Wed Jan 19 19:38:43 CET 2011


On Wed, Jan 19, 2011 at 1:23 PM, Brett Cannon <brett at python.org> wrote:
..
>>>  (a) Python 3 doesn't support non-ASCII module names
..
> -0 from me (unless the Unicode variable naming PEP says otherwise).
>

I am not sure what exactly is not supported.  On my OSX system:

$ ./python.exe
Python 3.2b2+ ..

>>> import саша
>>> саша.foo
42
>>> from саша import foo
>>> foo
42


PEP 3131 does not distinguish between different types of identifiers,
so I think it assumes that non-ascii module names should be supported.

+1 on fixing any remaining bugs


More information about the Python-Dev mailing list