[Python-Dev] New and Improved Import Hooks

Martin v. Löwis Martin v. Löwis
Thu, 5 Dec 2002 21:01:25 +0100


>> Why not "copy" importing_modules_from_dlls(pyds) mechanism?
>>What do you mean by that? What is "importing_modules_from_dlls"?

>Should be "importing_module_from_dlls".

I still don't understand. Is that some feature of Python?

>>If you mean "one .pyd file is one Python module", then this approach
>>won't work for .zip files:People want many .py modules in a single
.zip
>>file.

>It will work if handled by the zip importer.

How will the zip importer know what zipfile to read?

If I have "python23.zip", and do

import httplib

what mechanism will extract httplib.py from python23.zip?

> from MyArchive_with_many_modules import MyModule

So you could only zip entire packages? This is insufficient.

Regards,
Martin