Feb. 16, 2002
3:22 a.m.
Burton Radons wrote:
What's wrong with:
class Foo(object): class myprop_class (object): """A computed property on Foo objects."""
def __get__(subclass, self, klass): return ... def __set__(subclass, self, value): ... def __delete__(subclass, self): ...
How about this: class Foo(object): class myprop(property): ... -- --- Aahz (@pobox.com) Hugs and backrubs -- I break Rule 6 <*> http://www.rahul.net/aahz/ Androgynous poly kinky vanilla queer het Pythonista We must not let the evil of a few trample the freedoms of the many.