[issue1559549] ImportError needs attributes for module and file name

R. David Murray report at bugs.python.org
Fri Feb 10 18:56:41 CET 2012


R. David Murray <rdmurray at bitdance.com> added the comment:

However you do it, I'm very much in favor of having the full name available.  I either wrote or fixed (I can't remember which) that stack walk in pydoc, and you are right, it is very very ugly.  This would also be a big benefit for unittest, which currently *doesn't* do the stack walk and therefore generates incorrect error messages when sub-imports fail.

----------

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


More information about the Python-bugs-list mailing list