Comparison of cyclic objects (was RE: [Python-Dev] trashcan and PR#7)

Jeremy Hylton jeremy@cnri.reston.va.us
Fri, 14 Apr 2000 15:18:53 -0400 (EDT)


>>>>> "VM" == Vladimir Marangozov <Vladimir.Marangozov@inrialpes.fr> writes:

  VM> Jeremy Hylton wrote:
  >>  Here it is contextified.  One small difference from the previous
  >> patch is that NESTING_LIMIT is now only 1000.  I think this is
  >> sufficient to cover commonly occuring nested containers.
  >> 
  >> Jeremy
  >> 
  >> [patch omitted]

  VM> Nice.

  VM> I think you don't need the _PyCompareState_flag. Like in
  VM> trashcan, _PyCompareState_nesting is enough to enter the
  VM> sections of the code that depend on _PyCompareState_flag.

Right.  Thanks for the suggestion, and thanks to Barry & Fred for
theirs.  I've checked in the changes.

Jeremy