[Python-Dev] Fix import errors to have data
jim at zope.com
Wed Jul 28 12:59:24 CEST 2004
Guido van Rossum wrote:
>>An even simpler aproach would be to have a ModuleNotFound error
>>that extends ImportError and gets raised if the module can't
> That wouldn't solve anything, because if foo brokenly tries to import
> bar and that raises ModuleNotFound, so will "import foo".
A possible way to make this work is to have an exception that is raised
of a module can't be found *and* if no module code has executed. <shrug>
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Python-Dev