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

Class 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)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)