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/046438.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
Tue Jul 27 19:29:21 CEST 2004
Tim Peters wrote:
> [Charles Cazabon]
> 
>>This is a bit I've never been quite sure of.  If a module knows it imports
>>something not available everywhere, and can handle that bit missing, shouldn't
>>it already wrap its import of that module in a try: ... except ImportError:
>>block?
> 
> 
> Sure!  Jim wants to distinguish "absenceness" from "brokenness" for
> some reason.  It's not clear to my why

Because a broken module is something that should get fixed.

Hiding errors is a bad thing.  It's like using hasattr. :)

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