Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment:

I don't have Windows, but here is an example of a WindowsRegistryImporter, 
written outside importlib (the script also contains a fake implementation of 
winreg, so I could test it...)

Of course it needs to be rewritten to fit in _bootstrap.py;  at least the 
script shows that it's only necessary to implement a find_module() function.

I'm not sure I had all details right - for example, should we search for the 
full module name, or only the last component?

This loader has some interesting features; for example it's possible to have 
several modules in the same .pyd file, as long as it exports the various 
PyInit_* functions.

----------
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file26483/winreg_loader.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14578>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to