changeset: 68714:e63a583ec689 user: Victor Stinner date: Mon Mar 07 18:34:59 2011 +0100 files: Doc/c-api/import.rst Include/import.h description: Issue #3080: Document the name attribute of the _inittab structure The name is an ASCII encoded string. diff -r ced52fcd95f6 -r e63a583ec689 Doc/c-api/import.rst --- a/Doc/c-api/import.rst Mon Mar 07 18:28:15 2011 +0100 +++ b/Doc/c-api/import.rst Mon Mar 07 18:34:59 2011 +0100 @@ -272,13 +272,13 @@ 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); }; diff -r ced52fcd95f6 -r e63a583ec689 Include/import.h --- a/Include/import.h Mon Mar 07 18:28:15 2011 +0100 +++ b/Include/import.h Mon Mar 07 18:34:59 2011 +0100 @@ -87,7 +87,7 @@ 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;