diff options
author | Georg Brandl <georg@python.org> | 2010-03-07 20:58:31 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-03-07 20:58:31 (GMT) |
commit | 303e675940a25f2c5f750a05e36197cd0838eb4c (patch) | |
tree | 55c13e4b6d3e1de0ff2c0f5c441387579c0fdb1c /Doc | |
parent | 53e8eeadd60ab7566d2bc29a51ce286a890dd14b (diff) | |
download | cpython-303e675940a25f2c5f750a05e36197cd0838eb4c.zip cpython-303e675940a25f2c5f750a05e36197cd0838eb4c.tar.gz cpython-303e675940a25f2c5f750a05e36197cd0838eb4c.tar.bz2 |
#8085: The function is called PyObject_NewVar, not PyObject_VarNew.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/gcsupport.rst | 2 | ||||
-rw-r--r-- | Doc/c-api/typeobj.rst | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/gcsupport.rst b/Doc/c-api/gcsupport.rst index 7fe33b3..4517929 100644 --- a/Doc/c-api/gcsupport.rst +++ b/Doc/c-api/gcsupport.rst @@ -31,7 +31,7 @@ include the :const:`Py_TPFLAGS_HAVE_GC` and provide an implementation of the Constructors for container types must conform to two rules: #. The memory for the object must be allocated using :cfunc:`PyObject_GC_New` - or :cfunc:`PyObject_GC_VarNew`. + or :cfunc:`PyObject_GC_NewVar`. #. Once all the fields which may contain references to other containers are initialized, it must call :cfunc:`PyObject_GC_Track`. diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst index 0566375..8489c35 100644 --- a/Doc/c-api/typeobj.rst +++ b/Doc/c-api/typeobj.rst @@ -189,7 +189,7 @@ type objects) *must* have the :attr:`ob_size` field. instance; this is normally :cfunc:`PyObject_Del` if the instance was allocated using :cfunc:`PyObject_New` or :cfunc:`PyObject_VarNew`, or :cfunc:`PyObject_GC_Del` if the instance was allocated using - :cfunc:`PyObject_GC_New` or :cfunc:`PyObject_GC_VarNew`. + :cfunc:`PyObject_GC_New` or :cfunc:`PyObject_GC_NewVar`. This field is inherited by subtypes. |