A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-July/046490.html below:

[Python-Dev] Fix import errors to have data

[Python-Dev] Fix import errors to have data [Python-Dev] Fix import errors to have dataJim Fulton 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
>>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
More information about the Python-Dev mailing list

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