mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Implement PEP 3121: new module initialization and finalization API.
This commit is contained in:
parent
cdf94635d7
commit
1a21451b1d
113 changed files with 2230 additions and 855 deletions
|
@ -200,7 +200,7 @@ Importing Modules
|
|||
tricks with this to provide a dynamically created collection of frozen modules.
|
||||
|
||||
|
||||
.. cfunction:: int PyImport_AppendInittab(char *name, void (*initfunc)(void))
|
||||
.. cfunction:: int PyImport_AppendInittab(char *name, PyObject* (*initfunc)(void))
|
||||
|
||||
Add a single module to the existing table of built-in modules. This is a
|
||||
convenience wrapper around :cfunc:`PyImport_ExtendInittab`, returning ``-1`` if
|
||||
|
@ -221,7 +221,7 @@ Importing Modules
|
|||
|
||||
struct _inittab {
|
||||
char *name;
|
||||
void (*initfunc)(void);
|
||||
PyObject* (*initfunc)(void);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue