]> granicus.if.org Git - python/commitdiff
#8085: The function is called PyObject_NewVar, not PyObject_VarNew.
authorGeorg Brandl <georg@python.org>
Sun, 7 Mar 2010 20:58:31 +0000 (20:58 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 7 Mar 2010 20:58:31 +0000 (20:58 +0000)
Doc/c-api/gcsupport.rst
Doc/c-api/typeobj.rst

index 7fe33b3b6091a44995a0a67e42d8ca70c4f85696..4517929ca9b8f7a5ca9d5a939845a2516de7bf52 100644 (file)
@@ -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`.
index 05663751d8858907a9f5ca1c1e80275678ff5778..8489c35bb5e06008aeb6d0341a5718e465173a77 100644 (file)
@@ -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.