[issue15111] Wrong ImportError message with importlib
R. David Murray
report at bugs.python.org
Wed Jun 20 03:03:49 CEST 2012
R. David Murray <rdmurray at bitdance.com> added the comment:
To clarify Amaury's example:
rdmurray at hey:~/python/p32>./python -c "from distutils import msvc9compiler"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/rdmurray/python/p32/Lib/distutils/msvc9compiler.py", line 27, in <module>
import winreg
ImportError: No module named winreg
rdmurray at hey:~/python/p33>./python -c "from distutils import msvc9compiler"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name msvc9compiler
So there is definitely some lost information in 3.3 compared to 3.2 in the 'import from' case.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15111>
_______________________________________
More information about the Python-bugs-list
mailing list