[issue5230] pydoc reports misleading failure if target module raises an ImportError

Lucas Prado Melo report at bugs.python.org
Wed Jun 3 17:27:11 CEST 2009


Lucas Prado Melo <lukepadawan at gmail.com> added the comment:

I had lots of stuff to do lately, sorry it took me so long to answer.
Here is the patch as we intended, but there is a bug yet.
What if the non-existent imported module has the same name of the module
itself?

$ cat pydoc_badimport3.py
import this_doesnt_exist.pydoc_badimport3
$ pydoc pydoc_badimport3

I tested this possibility, and I found out that there is a bug in this
situation yet: pydoc still tells the user that the module couldn't be found.

----------
Added file: http://bugs.python.org/file14172/pydocs.diff

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


More information about the Python-bugs-list mailing list