[Python-Dev] New and Improved Import Hooks (original) (raw)
Martin v. L�wis martin@v.loewis.de
05 Dec 2002 12:49:57 +0100
- 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 ]
"M.-A. Lemburg" <mal@lemburg.com> writes:
But why store the import objects in sys.path and not in some auxilliary dictionary instead ?
What would be the advantage of doing so?
And, if this is done: How can I add my own custom import mechanism to sys.path? The machinery to replace strings in sys.path is only available for zip files, all other hooks must add their objects to sys.path directly.
Regards, Martin
- 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 ]