[Python-Dev] Re: Proposed Python api for testing whether a module exists (original) (raw)
Paul Moore pf_moore at yahoo.co.uk
Mon Aug 2 19:09:57 CEST 2004
- Previous message: [Python-Dev] Re: Proposed Python api for testing whether a module exists
- Next message: [Python-Dev] Proposed Python api for testing whether a module exists
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jim Fulton <jim at zope.com> writes:
I propose to add the following function to the imp module:
exists(modulename) [...] If there are no objections, I'll try to get this in before Wednesday night.
Does this work in the presence of PEP 302 style import hooks? Specifically, the case where there's a zipfile on sys.path.
Paul.
A little inaccuracy sometimes saves tons of explanation -- Saki
- Previous message: [Python-Dev] Re: Proposed Python api for testing whether a module exists
- Next message: [Python-Dev] Proposed Python api for testing whether a module exists
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]