]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #3080: Document the name attribute of the _inittab structure
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 7 Mar 2011 17:34:59 +0000 (18:34 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 7 Mar 2011 17:34:59 +0000 (18:34 +0100)
The name is an ASCII encoded string.

Doc/c-api/import.rst
Include/import.h

index c9556b61aa0c60e52f9075ac4c3888221a8108a3..885a752fea0aadba9c2c75e2c074376b7d081a80 100644 (file)
@@ -272,13 +272,13 @@ Importing Modules
 
    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
-   into the interpreter.  Programs which embed Python may use an array of these
-   structures in conjunction with :c:func:`PyImport_ExtendInittab` to provide
-   additional built-in modules.  The structure is defined in
-   :file:`Include/import.h` as::
+   into the interpreter.  The name is an ASCII encoded string.  Programs which
+   embed Python may use an array of these structures in conjunction with
+   :c:func:`PyImport_ExtendInittab` to provide additional built-in modules.
+   The structure is defined in :file:`Include/import.h` as::
 
       struct _inittab {
-          char *name;
+          char *name;                 /* ASCII encoded string */
           PyObject* (*initfunc)(void);
       };
 
index 710fd22914d01e0f4306287a03ffce17c6a1307e..6a62c94c6860f3acfdead7d9585a028ad32e0990 100644 (file)
@@ -87,7 +87,7 @@ PyAPI_FUNC(int)_PyImport_FixupBuiltin(
 PyAPI_FUNC(int)_PyImport_FixupExtensionObject(PyObject*, PyObject *, PyObject *);
 
 struct _inittab {
-    char *name;
+    char *name;                 /* ASCII encoded string */
     PyObject* (*initfunc)(void);
 };
 PyAPI_DATA(struct _inittab *) PyImport_Inittab;