Semantics of ==

Axel Boldt axelboldt at yahoo.com
Wed Mar 17 18:19:30 EST 2004


"Terry Reedy" <tjreedy at udel.edu> 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
pickle.dumps(w).

Axel



More information about the Python-list mailing list