[Python-ideas] caching properties

Mathias Panzenböck grosser.meister.morti at gmx.net
Thu Apr 30 01:03:35 CEST 2009

Benjamin Peterson wrote:
> I think it would be nice to add a "cache" argument to the property()
> constructor. When "cache" was True, property would only ask the getter function
> once for the result. This would simplify properties that require expensive
> operations to compute.

You mean like the once methods in eiffel?

More information about the Python-ideas mailing list