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/2002-December/031391.html below:

[Python-Dev] PEP 302 and __path__

[Python-Dev] PEP 302 and __path__ [Python-Dev] PEP 302 and __path__Just van Rossum just@letterror.com
Sat, 28 Dec 2002 11:24:32 +0100
Guido van Rossum wrote:

> I also would like to propose a new API to find modules:
> imp.get_loader(name[, path]). 

Hey, that's exactly what I proposed, with a better name ;-)

> This should return a module loader
> object, or None if the module isn't found; it should raise an
> exception only if something unexpected went wrong.  Once we have a
> module loader object, loader.load_module(name[, path]) should load
> (and return) the requested module. 

loader.load_module() doesn't need the optional path argument and is
indeed spec'ed without it in the PEP. This is symmetrical with
imp.load_module().

Just



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