Trees | Indices | Help |
|
---|
|
object --+ | type --+ | VisitableType
Metaclass which assigns a `_compiler_dispatch` method to classes having a `__visit_name__` attribute.
The _compiler_dispatch attribute becomes an instance method which looks approximately like the following:
def _compiler_dispatch (self, visitor, **kw): '''Look for an attribute named "visit_" + self.__visit_name__ on the visitor, and call it with the same kw params.''' return getattr(visitor, 'visit_%s' % self.__visit_name__)(self, **kw)
Classes having no __visit_name__ attribute will remain unaffected.
Instance Methods | |||
the object's type |
|
||
Inherited from Inherited from |
Properties | |
Inherited from Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Nov 21 16:22:48 2012 | http://epydoc.sourceforge.net |