Package pyxb :: Class cscRoot
[hide private]
[frames] | no frames]

type cscRoot

source code

object --+
         |
        cscRoot
Known Subclasses:

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)
Instance Methods [hide private]
 
__init__(self, *args, **kw) source code
Method Details [hide private]

__init__(self, *args, **kw)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)