[Python-Dev] New and Improved Import Hooks (original) (raw)
Michael Hudson mwh@python.net
05 Dec 2002 13:43:38 +0000
- Previous message: [Python-Dev] New and Improved Import Hooks
- Next message: [Python-Dev] New and Improved Import Hooks
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Fredrik Lundh" <fredrik@pythonware.com> writes:
Guido wrote:
> Obviously if the data files get stored in the zip file too, the code > searching for it needs to be made zip file aware; but if zip files are > used to provide other libraries, that shouldn't break code that > looks for data files along sys.path. as I might have mentioned before, it would be really nice if custom importers supported optional "loaddata" and "getmodulenames" hooks.
I haven't seen that mentioned before, but it certainly would be useful.
(pyrepl currently has some nasty code to allow tab completion of import statements, bits of which I'd be most happy to see the back of).
Cheers, M.
-- Hey, if I thought I was wrong, I'd change my mind. :) -- Grant Edwards, comp.lang.python
- Previous message: [Python-Dev] New and Improved Import Hooks
- Next message: [Python-Dev] New and Improved Import Hooks
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]