Commit db536afe authored by Victor Stinner's avatar Victor Stinner

Issue #3080: Document the name attribute of the _inittab structure

The name is an ASCII encoded string.
parent 21fcd0c9
...@@ -272,13 +272,13 @@ Importing Modules ...@@ -272,13 +272,13 @@ Importing Modules
Structure describing a single entry in the list of built-in modules. Each of Structure describing a single entry in the list of built-in modules. Each of
these structures gives the name and initialization function for a module built these structures gives the name and initialization function for a module built
into the interpreter. Programs which embed Python may use an array of these into the interpreter. The name is an ASCII encoded string. Programs which
structures in conjunction with :c:func:`PyImport_ExtendInittab` to provide embed Python may use an array of these structures in conjunction with
additional built-in modules. The structure is defined in :c:func:`PyImport_ExtendInittab` to provide additional built-in modules.
:file:`Include/import.h` as:: The structure is defined in :file:`Include/import.h` as::
struct _inittab { struct _inittab {
char *name; char *name; /* ASCII encoded string */
PyObject* (*initfunc)(void); PyObject* (*initfunc)(void);
}; };
......
...@@ -87,7 +87,7 @@ PyAPI_FUNC(int)_PyImport_FixupBuiltin( ...@@ -87,7 +87,7 @@ PyAPI_FUNC(int)_PyImport_FixupBuiltin(
PyAPI_FUNC(int)_PyImport_FixupExtensionObject(PyObject*, PyObject *, PyObject *); PyAPI_FUNC(int)_PyImport_FixupExtensionObject(PyObject*, PyObject *, PyObject *);
struct _inittab { struct _inittab {
char *name; char *name; /* ASCII encoded string */
PyObject* (*initfunc)(void); PyObject* (*initfunc)(void);
}; };
PyAPI_DATA(struct _inittab *) PyImport_Inittab; PyAPI_DATA(struct _inittab *) PyImport_Inittab;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment