Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
db536afe
Commit
db536afe
authored
Mar 07, 2011
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #3080: Document the name attribute of the _inittab structure
The name is an ASCII encoded string.
parent
21fcd0c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Doc/c-api/import.rst
Doc/c-api/import.rst
+5
-5
Include/import.h
Include/import.h
+1
-1
No files found.
Doc/c-api/import.rst
View file @
db536afe
...
...
@@ -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);
};
...
...
Include/import.h
View file @
db536afe
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment