27 Jul
2004
27 Jul
'04
7:29 p.m.
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@zope.com Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org