[Python-checkins] CVS: python/dist/src/Include object.h,2.52,2.53

Jeremy Hylton python-dev@python.org
Fri, 14 Apr 2000 15:13:40 -0400 (EDT)


Update of /projects/cvsroot/python/dist/src/Include
In directory bitdiddle:/home/jhylton/python/src/Include

Modified Files:
	object.h 
Log Message:
Fix PR#7 comparisons of recursive objects

Note that comparisons of deeply nested objects can still dump core in
extreme cases.


Index: object.h
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Include/object.h,v
retrieving revision 2.52
retrieving revision 2.53
diff -C2 -r2.52 -r2.53
*** object.h	2000/03/21 16:14:47	2.52
--- object.h	2000/04/14 19:13:07	2.53
***************
*** 285,288 ****
--- 285,291 ----
  extern DL_IMPORT(void) Py_ReprLeave Py_PROTO((PyObject *));
  
+ /* tstate dict key for PyObject_Compare helper */
+ extern PyObject *_PyCompareState_Key;
+ 
  /* Flag bits for printing: */
  #define Py_PRINT_RAW	1	/* No string quotes etc. */