Home | Trees | Indices | Help |
|
---|
|
object --+ | cscRoot
This little bundle of joy exists because in Python 2.6 it became an
error to invoke object.__init__
with parameters (unless you
also override __new__
, in which case it's only a warning.
Whatever.). Since I'm bloody not going to check in every class whether
super(Myclass,self)
refers to object
(even if I
could figure out how to do that, 'cuz the obvious solutions don't work),
we'll just make this thing the root of all cooperative super calling hierarchies. The standard
syntax in PyXB for this pattern is:
def method_csc (self, *args, **kw): super_fn = getattr(super(ThisClass, self), 'method_csc', lambda *a,**kw: self) return super_fn(*args, **kw)
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Sep 9 14:08:51 2011 | http://epydoc.sourceforge.net |