Feb. 18, 2002
9:24 a.m.
With minor changes, this works already. class Foo(property): def __get__(self, container, _type=None): print "this is get" print "self:", self print "container:", container print def __set__(self, container, value): print "this is set" print "self:", self print "container:", container print "value:", value print def __delete__(self, container): print "this is del" print "self:", type(self) print "container:", type(container) print class Spam(object): x = Foo() ## Jason Orendorff http://www.jorendorff.com/