This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, brett.cannon, brian.curtin, eric.snow, georg.brandl
Date 2012-07-22.20:53:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342990440.17.0.956112842742.issue14578@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-07-22 20:54:00amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, brett.cannon, georg.brandl, brian.curtin, eric.snow
2012-07-22 20:54:00amaury.forgeotdarcsetmessageid: <1342990440.17.0.956112842742.issue14578@psf.upfronthosting.co.za>
2012-07-22 20:53:59amaury.forgeotdarclinkissue14578 messages
2012-07-22 20:53:59amaury.forgeotdarccreate