equality & comparison by default (was Re: Too many 'self' in python.That's a big flaw in this language.)
Aahz
aahz at pythoncraft.com
Wed Jun 27 17:13:50 EDT 2007
In article <1i0cy8z.z94q5d1dxgexxN%aleax at mac.com>,
Alex Martelli <aleax at mac.com> wrote:
>
>In Python 3000, ordering comparisons will not exist by default (sigh, a
>modest loss of practicality on the altar of purity -- ah well, saw it
>coming, ever since complex numbers lost ordering comparisons), but
>equality and hashing should remain just like now (yay!).
While emotionally I agree with you, in practice I have come to agree
with the POV that allowing default ordering comparisons between disjoint
types causes subtle bugs that are more difficult to fix than the small
amount of boilerplate needed to force comparisons when desired.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"as long as we like the same operating system, things are cool." --piranha
More information about the Python-list
mailing list