[Python-Dev] Fix import errors to have data (original) (raw)

Guido van Rossum guido at python.org
Tue Jul 27 22:50:14 CEST 2004


An even simpler aproach would be to have a ModuleNotFound error that extends ImportError and gets raised if the module can't be found.

That wouldn't solve anything, because if foo brokenly tries to import bar and that raises ModuleNotFound, so will "import foo".

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list