[sapug] TypeError: __init__() got multiple values for keyword argument 'value'

Darryl Ross spam at afoyi.com
Tue Apr 29 05:49:54 CEST 2008


Heya,

I'm sure I've worked out how to to this in the past, but the syntax is 
escaping me right now.


class DooHicky(object):
     def __init__(self, arg1=None, arg2=None):
       pass

class Thingo(DooHicky):
     def __init__(self, value=None, *args, **kwargs):
         self.value = value
         super(Thingo, self).__init__(self, *args, **kwargs)


Basically, I want to pass in an argument to my "Thingo" class which does 
not get passed back to the parent constructor.

Any ideas / pointers?

Cheers
-D


More information about the sapug mailing list