Really virtual properties
Steven Bethard
steven.bethard at gmail.com
Thu Aug 18 22:37:45 EDT 2005
Ben Finney wrote:
> Not using the built-in property type. Here is a recipe for a
> LateBindingProperty that does what you ask:
>
> Steven Bethard:
> "This recipe provides a LateBindingProperty callable which allows
> the getter and setter methods associated with the property to be
> overridden in subclasses."
> <URL:http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/408713>
Also see Tim Delaney's comment at the bottom, which provides similar
functionality by subclassing property.
STeVe
More information about the Python-list
mailing list