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): self_fn = lambda *_args, **_kw: self super_fn = getattr(super(ThisClass, self), 'method_csc', self_fn) 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 Wed Nov 7 19:27:35 2012 | http://epydoc.sourceforge.net |