summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-05-21 09:35:41 (GMT)
committerGitHub <noreply@github.com>2018-05-21 09:35:41 (GMT)
commit1179f4b40f375af5c59cd4b6be9cc313fa0e1a37 (patch)
treeb1c19c071e484c60f207a77571bc34a3a2ea4951 /Doc/c-api
parente2537521916c5bf88fcf54d4654ff1bcd332be4a (diff)
downloadcpython-1179f4b40f375af5c59cd4b6be9cc313fa0e1a37.zip
cpython-1179f4b40f375af5c59cd4b6be9cc313fa0e1a37.tar.gz
cpython-1179f4b40f375af5c59cd4b6be9cc313fa0e1a37.tar.bz2
bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/gcsupport.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/gcsupport.rst b/Doc/c-api/gcsupport.rst
index f5e0d7e..7f54b6a 100644
--- a/Doc/c-api/gcsupport.rst
+++ b/Doc/c-api/gcsupport.rst
@@ -49,7 +49,7 @@ Constructors for container types must conform to two rules:
.. c:function:: TYPE* PyObject_GC_Resize(TYPE, PyVarObject *op, Py_ssize_t newsize)
Resize an object allocated by :c:func:`PyObject_NewVar`. Returns the
- resized object or *NULL* on failure.
+ resized object or *NULL* on failure. *op* must not be tracked by the collector yet.
.. c:function:: void PyObject_GC_Track(PyObject *op)