def __init__(self, interface, **kwargs): ProxyKernelInterface.__init__(self, interface) invalid_keywords = set(kwargs.keys()) - set(self.keywords) if invalid_keywords: raise ValueError("unexpected keyword argument '{0}'".format(invalid_keywords.pop())) self.__dict__.update(kwargs)
def __init__(self, wrapee, restriction): ProxyKernelInterface.__init__(self, wrapee) self.restriction = restriction