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
5f7c050d
Commit
5f7c050d
authored
Sep 01, 2007
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document PyCFunctionWithKeywords, add comment for PEP 3123.
parent
76358bdc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
Doc/c-api/newtypes.rst
Doc/c-api/newtypes.rst
+10
-1
No files found.
Doc/c-api/newtypes.rst
View file @
5f7c050d
...
...
@@ -139,6 +139,7 @@ definition of all other Python objects.
These macros are used in the definition of :ctype:`PyObject` and
:ctype:`PyVarObject`:
.. XXX need to document PEP 3123 changes here
.. cmacro:: PyObject_HEAD
...
...
@@ -171,7 +172,7 @@ These macros are used in the definition of :ctype:`PyObject` and
Note that :cmacro:`PyObject_HEAD` is part of the expansion, and that its own
expansion varies depending on the definition of :cmacro:`Py_TRACE_REFS`.
PyObject_HEAD_INIT
.. cmacro::
PyObject_HEAD_INIT
.. ctype:: PyCFunction
...
...
@@ -183,6 +184,14 @@ PyObject_HEAD_INIT
in Python. The function must return a new reference.
.. ctype:: PyCFunctionWithKeywords
Type of the functions used to implement Python callables in C that take
keyword arguments: they take three :ctype:`PyObject\*` parameters and return
one such value. See :ctype:`PyCFunction` above for the meaning of the return
value.
.. ctype:: PyMethodDef
Structure used to describe a method of an extension type. This structure has
...
...
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