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. <shrug> 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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4