[Python-Dev] Fix import errors to have data (original) (raw)
Jim Fulton jim at zope.com
Wed Jul 28 12:59:24 CEST 2004
- Previous message: [Python-Dev] Fix import errors to have data
- Next message: [Python-Dev] Fix import errors to have data
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 be found.
That wouldn't solve anything, because if foo brokenly tries to import bar and that raises ModuleNotFound, so will "import foo".
Doh. Right.
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.
Jim
-- 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
- Previous message: [Python-Dev] Fix import errors to have data
- Next message: [Python-Dev] Fix import errors to have data
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]