[Python-Dev] Fix import errors to have data (original) (raw)
Jim Fulton jim at zope.com
Tue Jul 27 19:45:55 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 ]
Barry Warsaw wrote:
On Tue, 2004-07-27 at 13:25, Tim Peters wrote:
Sure! Jim wants to distinguish "absenceness" from "brokenness" for some reason. So, why doesn't imp.findmodule() fit the bill?
It doesn't handle packages.
import compiler.ast import imp imp.find_module('compiler.ast') Traceback (most recent call last): File "", line 1, in ? ImportError: No module named compiler.ast
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 ]