I need to make sure all the named parameters were passed to a method (I don't want any defaults). Is the following the best way to enforce it?
class X:
def func(self, **kwargs):
if set(kwargs.keys() != ('arg1', 'arg2', 'arg3'):
raise ArgException(kwargs)
def func( self, arg1, arg2, arg3 ).def func(self, a, b, c)... :)