summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/structures.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/c-api/structures.rst b/Doc/c-api/structures.rst
index 8a1431c..75e2383 100644
--- a/Doc/c-api/structures.rst
+++ b/Doc/c-api/structures.rst
@@ -101,6 +101,13 @@ the definition of all other Python objects.
(((PyVarObject*)(o))->ob_size)
+.. c:function:: void Py_SET_SIZE(PyVarObject *o, Py_ssize_t size)
+
+ Set the object *o* size of *size*.
+
+ .. versionadded:: 3.9
+
+
.. c:macro:: PyObject_HEAD_INIT(type)
This is a macro which expands to initialization values for a new