I have a class:
class A(object): def __init__(self,a,b,c,d,e,f,g,...........,x,y,z) #do some init stuff
And I have a subclass w
Considering that arguments could be passed either by name or by position, I'd code:
class B(A): def __init__(self, *a, **k): if 'W' in k: w = k.pop('W') else: w = a.pop() A.__init__(self, *a, **k) self._W = w