property and virtuality
Steven Bethard
steven.bethard at gmail.com
Thu Mar 31 20:18:00 EST 2005
Steven Bethard wrote:
> Laszlo Zsolt Nagy wrote:
>
>> My problem is about properties and the virtuality of the methods. I
>> would like to create a property whose get and set methods
>> are virtual.
>
> Perhaps you want to roll your own VirtualProperty descriptor? Here's
> one based off the property implementation in Raymond Hettinger's How-To
> Guide for Descriptors[1]:
This comes up often enough I figured it would be worth posting this as a
recipe:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/408713
STeVe
More information about the Python-list
mailing list