[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