summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-01-20 15:50:42 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-01-20 15:50:42 (GMT)
commita6c861fc0bd07e871999754597862aa43c6847bb (patch)
treebd4391f58ab5b84c438068419497eeaac04994f3 /Include
parentf60560626ce4fadf32fcbfac5e762242f661d508 (diff)
downloadcpython-a6c861fc0bd07e871999754597862aa43c6847bb.zip
cpython-a6c861fc0bd07e871999754597862aa43c6847bb.tar.gz
cpython-a6c861fc0bd07e871999754597862aa43c6847bb.tar.bz2
Fix comment.
Diffstat (limited to 'Include')
-rw-r--r--Include/objimpl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/objimpl.h b/Include/objimpl.h
index 1a2255d..2a365d9 100644
--- a/Include/objimpl.h
+++ b/Include/objimpl.h
@@ -214,10 +214,10 @@ extern DL_IMPORT(void) _PyObject_Del(PyObject *);
/* To make a new object participate in garbage collection use
PyObject_{New, VarNew, Del} to manage the memory. Set the type flag
- Py_TPFLAGS_GC and define the type method tp_recurse. You should also
+ Py_TPFLAGS_GC and define the type method tp_traverse. You should also
add the method tp_clear if your object is mutable. Include
PyGC_HEAD_SIZE in the calculation of tp_basicsize. Call
- PyObject_GC_Init after the pointers followed by tp_recurse become
+ PyObject_GC_Init after the pointers followed by tp_traverse become
valid (usually just before returning the object from the allocation
method. Call PyObject_GC_Fini before those pointers become invalid
(usually at the top of the deallocation method). */