[Python-3000] hash as attribute/property
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Apr 5 02:14:55 CEST 2006
Guido van Rossum wrote:
> The __hash__() method qualifies, which is why it's a tough call (I'll
> come back on that; I want to come up with a reason why __hash__()
> should remain a method).
Another thought is how frequently the method/attribute
is going to be used. I can't even remember when was
the last time I had to explicitly hash anything, so
the convenience of being able to call it without
() seems insignificant.
--
Greg
More information about the Python-3000
mailing list