A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-August/046634.html below:

[Python-Dev] Proposed Python api for testing whether a module exists

[Python-Dev] Proposed Python api for testing whether a module exists [Python-Dev] Proposed Python api for testing whether a module existsEdward Loper edloper at gradient.cis.upenn.edu
Mon Aug 2 19:50:42 CEST 2004
> I propose to add the following function to the imp module:
> 
>   exists(module_name)
> 
>      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
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