[issue29787] Internal importlib frames visible when module imported by import_module throws exception

Ulrich Petri report at bugs.python.org
Tue Mar 14 05:44:54 EDT 2017


Ulrich Petri added the comment:

Thanks for the fast response. 
However I disagree with the assertion that this is "working as expected". IMO the same arguments apply as in the original ticket (esp. Georg Brandls) http://bugs.python.org/issue15110#msg163258.

It is unexpected, confusing (esp. to newer devs) and adds a lot of (unnecessary) noise to tracebacks.

Also this basically demotes `import_module` to second rate league since it doesn't get to enjoy the niceties of "proper" import which is unfortunate since it's used heavily for example in django.

----------

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


More information about the Python-bugs-list mailing list