[Python-checkins] r78771 - in python/trunk/Doc/c-api: gcsupport.rst typeobj.rst
georg.brandl
python-checkins at python.org
Sun Mar 7 21:58:31 CET 2010
Author: georg.brandl
Date: Sun Mar 7 21:58:31 2010
New Revision: 78771
Log:
#8085: The function is called PyObject_NewVar, not PyObject_VarNew.
Modified:
python/trunk/Doc/c-api/gcsupport.rst
python/trunk/Doc/c-api/typeobj.rst
Modified: python/trunk/Doc/c-api/gcsupport.rst
==============================================================================
--- python/trunk/Doc/c-api/gcsupport.rst (original)
+++ python/trunk/Doc/c-api/gcsupport.rst Sun Mar 7 21:58:31 2010
@@ -31,7 +31,7 @@
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`.
Modified: python/trunk/Doc/c-api/typeobj.rst
==============================================================================
--- python/trunk/Doc/c-api/typeobj.rst (original)
+++ python/trunk/Doc/c-api/typeobj.rst Sun Mar 7 21:58:31 2010
@@ -189,7 +189,7 @@
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.
More information about the Python-checkins
mailing list