t.p.r.Accessor : class documentation

Part of twisted.python.reflect View Source View In Hierarchy

Known subclasses: twisted.python.reflect.Summer

Extending this class will give you explicit accessor methods; a method called set_foo, for example, is the same as an if statement in __setattr__ looking for 'foo'. Same for get_foo and del_foo. There are also reallyDel and reallySet methods, so you can override specifics in subclasses without clobbering __setattr__ and __getattr__.

This implementation is for Python 2.1.

Method __setattr__ Undocumented
Method __getattr__ Undocumented
Method __delattr__ Undocumented
Method reallySet *actually* set self.k to v without incurring side-effects. This is a hook to be overridden by subclasses.
Method reallyDel *actually* del self.k without incurring side-effects. This is a hook to be overridden by subclasses.
def __setattr__(self, k, v): (source)
Undocumented
def __getattr__(self, k): (source)
Undocumented
def __delattr__(self, k): (source)
Undocumented
def reallySet(self, k, v): (source)
*actually* set self.k to v without incurring side-effects. This is a hook to be overridden by subclasses.
def reallyDel(self, k): (source)
*actually* del self.k without incurring side-effects. This is a hook to be overridden by subclasses.
API Documentation for Twisted, generated by pydoctor at 2012-09-01 11:44:56.