mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)
This commit is contained in:
parent
e253752191
commit
1179f4b40f
2 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue