Semantics of ==

Axel Boldt axelboldt at
Thu Mar 18 00:19:30 CET 2004

"Terry Reedy" <tjreedy at> wrote 

> I vaguely remember a discussion on PyDev list, some years ago, of
> 'equality' of infinite recursive structures.  I believe there was a change
> in the direction of simplicity and robustness to the current algorithm from
> a more ambitious algorithm that might have detected s != w -- but which
> sometimes had problems. 

Nowadays, an equality test which detects difference of s and w could
be defined by comparing the strings pickle.dumps(s) and


More information about the Python-list mailing list