[Python-Dev] Proposed Python api for testing whether a module exists (original) (raw)
Edward Loper edloper at gradient.cis.upenn.edu
Mon Aug 2 19:50:42 CEST 2004
- Previous message: [Python-Dev] 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 ]
I propose to add the following function to the imp module:
exists(modulename) Test whether the named module can be found. [...] If a dotted module name is given, then parent modules will be imported if they haven't already been imported.
If a parent module doesn't exist, will it return False or raise an ImportError?
-Edward
- Previous message: [Python-Dev] 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 ]