[issue15715] __import__ now raises with non-existing items in fromlist in 3.3

Eric Snow report at bugs.python.org
Fri Aug 17 01:14:42 CEST 2012


Eric Snow added the comment:

While this is a regression, 3.3 definitely puts an increased emphasis on using importlib.import_module() instead of builtins.__import__().  Any reason why import_module() isn't used?

As to the regression, while the current behavior makes more sense, it is contrary to a common idiom when using __import__().  However, given the push away from using __import__(), perhaps it can just stay this way.  Oh backward compatibility...

----------
nosy: +brett.cannon, eric.snow

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


More information about the Python-bugs-list mailing list