[issue8754] ImportError: quote bad module name in message

Éric Araujo report at bugs.python.org
Wed Dec 22 01:20:30 CET 2010


Éric Araujo <merwok at netwok.org> added the comment:

I set LANG and LC_ALL to C and tried to import a module with a non-ASCII name:
    $ ./python -m échec™♥
    python: No module named '\udcc3\udca9chec\udce2\udc84\udca2\udce2\udc99\udca5'
Is that a good enough test?

I guess the “__main__ changes” you’re talking about are the addition of single quotes around __main__ in some error messages; that was only for the sake of consistency.

----------

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


More information about the Python-bugs-list mailing list