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 :-(