[Python-checkins] CVS: python/dist/src/Objects object.c,2.100,2.101

Guido van Rossum python-dev@python.org
Thu, 21 Sep 2000 09:25:36 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory slayer.i.sourceforge.net:/tmp/cvs-serv20107

Modified Files:
	object.c 
Log Message:
As suggested by Toby Dickenson, setting ob_type to NULL in
_Py_Dealloc(), is a bad idea (and always was!).  So let's drop it.


Index: object.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/object.c,v
retrieving revision 2.100
retrieving revision 2.101
diff -C2 -r2.100 -r2.101
*** object.c	2000/09/18 16:20:57	2.100
--- object.c	2000/09/21 16:25:33	2.101
***************
*** 979,986 ****
  	destructor dealloc = op->ob_type->tp_dealloc;
  	_Py_ForgetReference(op);
- #ifndef WITH_CYCLE_GC
- 	if (_PyTrash_delete_nesting < PyTrash_UNWIND_LEVEL-1)
- 		op->ob_type = NULL;
- #endif
  	(*dealloc)(op);
  }
--- 979,982 ----