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/031344.html below:

[Python-Dev] New Import Hooks PEP, a first draft (and req. for PEP #)

[Python-Dev] New Import Hooks PEP, a first draft (and req. for PEP #)Just van Rossum just@letterror.com
Fri, 20 Dec 2002 20:06:38 +0100
James C. Ahlstrom wrote:

> I suggest we keep imp.find_module but add another argument:
> 
>       find_module(name [, path [, suffixes]])
> 
> where suffixes defaults to imp.get_suffixes().  This enables it
> to be used to search for files with different suffixes, for
> example suffixes=[".conf"].

One more thought: finding modules and finding data files is not the same
thing. Modules can be anywhere and must be accessible to anyone, but
data files belong to specific modules. Searching the entire sys.path for
a data file seems way too broad; there's got to be some information
available as to where the data is. Eg. I doubt it's a *feature* that
pdb.doc may also be found in site-packages.

Just

PS: Sorry for Cc-ing peps@python.org before, it was a bad idea to
crosspost the draft to python-dev and peps to begin with :-(



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