A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-April/003509.html below:

[Python-Dev] Re: Comparison of cyclic objects

[Python-Dev] Re: Comparison of cyclic objectsJeremy Hylton jeremy@cnri.reston.va.us
Thu, 13 Apr 2000 19:19:30 -0400 (EDT)
Looks like the proposed changed to PyObject_Compare matches E for your
example.  The printed representation doesn't match, but I'm not sure
that is as important.

>>> tight = [1, None, "x"]
>>> tight[1] = tight
>>> tight
[1, [...], 'x']
>>> loose = [1, [1, None, "x"], "x"]
>>> loose[1][1] = loose
>>> loose
[1, [1, [...], 'x'], 'x']
>>> tight
[1, [...], 'x']
>>> tight == loose
1

Jeremy




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4