[Python-3000] hash as attribute/property
greg.ewing at canterbury.ac.nz
Wed Apr 5 02:22:30 CEST 2006
Delaney, Timothy (Tim) wrote:
> 2. If it's a property, subclasses need to override the getter and
> recreate the property if they want to change the hash of the object
> (unless the base class uses a lazy property).
In which case the performance advantage becomes
negative (instead of just a method call, you
have a property lookup plus a method call).
More information about the Python-3000