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
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to