[Python-checkins] CVS: python/dist/src/Include objimpl.h,2.27,2.28

Neil Schemenauer nascheme@users.sourceforge.net
Sat, 20 Jan 2001 07:50:45 -0800


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv22253/Include

Modified Files:
	objimpl.h 
Log Message:
Fix comment.


Index: objimpl.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/objimpl.h,v
retrieving revision 2.27
retrieving revision 2.28
diff -C2 -r2.27 -r2.28
*** objimpl.h	2000/09/01 23:29:26	2.27
--- objimpl.h	2001/01/20 15:50:42	2.28
***************
*** 215,222 ****
  /* 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
     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
     valid (usually just before returning the object from the allocation
     method.  Call PyObject_GC_Fini before those pointers become invalid
--- 215,222 ----
  /* 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_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_traverse become
     valid (usually just before returning the object from the allocation
     method.  Call PyObject_GC_Fini before those pointers become invalid