So I have a class that will have a lot of attributes. Is there a way to make this class behave in a way that I can pass it as a **kwarg to a function?
class Foo ( object ) :
def __init__( self ) :
self.a = 'a'
self.b = 'b'
foo = Foo()
somefunc(**foo)
I cannot find the right operator to overload.
Thanks a lot!