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/2004-May/044888.html below:

[Python-Dev] cmp(x,x)

[Python-Dev] cmp(x,x)Michael Hudson mwh at python.net
Tue May 18 07:34:13 EDT 2004
Armin Rigo <arigo at tunes.org> writes:

> Hello,
>
> A minor semantic change that creeped in some time ago was an implicit
> assumption that any object x should "reasonably" be expected to compare equal
> to itself.  The arguments are summarized below (should this be documented,
> inserted in NEWS, turned in a mini-PEP a posteriori ... ?).


I have to admit that I haven't done my research, but I think you have
your history backwards: the recent change AIUI is that it's possible
that 'x == x' might be something *other* than Py_True...

Cheers,
mwh

-- 
  The ability to quote is a serviceable substitute for wit.
                                                -- W. Somerset Maugham

More information about the Python-Dev mailing list

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