spacepaste

  1.  
  2. class Parent:
  3. def __init__(nattr1,*unnamedparameters,**namedparameters):
  4. self.nattr1 = nattr1
  5. self.args = unnamedparameters
  6. self.kwargs = namedparameters
  7. class Child(Parent):
  8. self.newattrb = self.kwargs['newattrb']
  9. self.new1 = self.args[0]
  10.