[Python-3000] hash as attribute/property

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 5 01:24:13 CEST 2006


Guido van Rossum wrote:

> We apparently need more guidance for when it's appropriate to turn
> something into an attribute.

I'd suggest that things which could require substantial
computation to obtain should remain methods; hash()
seems to fall into that category.

--
Greg


More information about the Python-3000 mailing list