summaryrefslogtreecommitdiffstats
path: root/Doc/includes
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-04-29 08:26:34 (GMT)
committerGitHub <noreply@github.com>2021-04-29 08:26:34 (GMT)
commit5bd0619533ed6587ce76402e9b0b118eb4d4dd09 (patch)
tree4ee68209ce2cfd090a4f183d67a3e2b97bc89258 /Doc/includes
parentc6ad03fddf4b04c60dca4327140e59fb2dcca8e5 (diff)
downloadcpython-5bd0619533ed6587ce76402e9b0b118eb4d4dd09.zip
cpython-5bd0619533ed6587ce76402e9b0b118eb4d4dd09.tar.gz
cpython-5bd0619533ed6587ce76402e9b0b118eb4d4dd09.tar.bz2
bpo-43908: Document Static Types in the C API (GH-25710)
Update also PyTypeObject structure definition in the doc.
Diffstat (limited to 'Doc/includes')
-rw-r--r--Doc/includes/typestruct.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/includes/typestruct.h b/Doc/includes/typestruct.h
index 9ada03c..02f8ccf 100644
--- a/Doc/includes/typestruct.h
+++ b/Doc/includes/typestruct.h
@@ -35,12 +35,14 @@ typedef struct _typeobject {
const char *tp_doc; /* Documentation string */
+ /* Assigned meaning in release 2.0 */
/* call function for all accessible objects */
traverseproc tp_traverse;
/* delete references to contained objects */
inquiry tp_clear;
+ /* Assigned meaning in release 2.1 */
/* rich comparisons */
richcmpfunc tp_richcompare;
@@ -55,6 +57,7 @@ typedef struct _typeobject {
struct PyMethodDef *tp_methods;
struct PyMemberDef *tp_members;
struct PyGetSetDef *tp_getset;
+ // Strong reference on a heap type, borrowed reference on a static type
struct _typeobject *tp_base;
PyObject *tp_dict;
descrgetfunc tp_descr_get;
@@ -76,5 +79,5 @@ typedef struct _typeobject {
unsigned int tp_version_tag;
destructor tp_finalize;
-
+ vectorcallfunc tp_vectorcall;
} PyTypeObject;