[Python-Dev] Pre-PEP: Redesigning extension modules

Eric Snow ericsnowcurrently at gmail.com
Sun Sep 8 00:22:36 CEST 2013


On Mon, Sep 2, 2013 at 7:02 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:

> The hook API I currently have in mind is a two step initialisation:
>
>     PyImport_PrepareNAME (optional)
>     PyImport_ExecNAME
>

Should we also look at an API change for the initfunc() of PyImport_Inittab
entries?  Currently the function takes a module name, which doesn't jive
with loader.exec_module() taking a module.  I noticed this while adding an
exec_module() to BuiltinImporter.  I suppose the same thing goes
for PyImport_ImportFrozenModuleObject().

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130907/73f9cab0/attachment.html>


More information about the Python-Dev mailing list