[Python-3000] hash as attribute/property
Guido van Rossum
guido at python.org
Tue Apr 4 18:57:29 CEST 2006
On 4/3/06, Delaney, Timothy (Tim) <tdelaney at avaya.com> wrote:
> I've been thinking that `hash` could be an attribute (or property if it
> needs to be calculated on-the-fly) rather than the current method call.
>
> Or it could be an easy thing to add to the "won't change" PEP ...
The latter, please.
We apparently need more guidance for when it's appropriate to turn
something into an attribute. I don't have time to write that up right
now; if someone else can give it a shot, I'd appreciate it; or I'll
come back to this topic later.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list