Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db536af

Browse files
author
Victor Stinner
committed
Issue #3080: Document the name attribute of the _inittab structure
The name is an ASCII encoded string.
1 parent 21fcd0c commit db536af

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/c-api/import.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,13 @@ Importing Modules
272272
273273
Structure describing a single entry in the list of built-in modules. Each of
274274
these structures gives the name and initialization function for a module built
275-
into the interpreter. Programs which embed Python may use an array of these
276-
structures in conjunction with :c:func:`PyImport_ExtendInittab` to provide
277-
additional built-in modules. The structure is defined in
278-
:file:`Include/import.h` as::
275+
into the interpreter. The name is an ASCII encoded string. Programs which
276+
embed Python may use an array of these structures in conjunction with
277+
:c:func:`PyImport_ExtendInittab` to provide additional built-in modules.
278+
The structure is defined in :file:`Include/import.h` as::
279279
280280
struct _inittab {
281-
char *name;
281+
char *name; /* ASCII encoded string */
282282
PyObject* (*initfunc)(void);
283283
};
284284

Include/import.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ PyAPI_FUNC(int)_PyImport_FixupBuiltin(
8787
PyAPI_FUNC(int)_PyImport_FixupExtensionObject(PyObject*, PyObject *, PyObject *);
8888

8989
struct _inittab {
90-
char *name;
90+
char *name; /* ASCII encoded string */
9191
PyObject* (*initfunc)(void);
9292
};
9393
PyAPI_DATA(struct _inittab *) PyImport_Inittab;

0 commit comments

Comments
 (0)