Bind some of the arguments and keyword arguments of a callable (‘listener’). Then when the Handler instance is called (e.g. handler(result, **kwargs)) the result is passed as first argument to callable, the kwargs is combined with those given at construction, and the args are those given at construction. Its return value is returned.
Bind args and kwargs to listener. |
Handler
¶Bind some of the arguments and keyword arguments of a callable (‘listener’). Then when the Handler instance is called (e.g. handler(result, **kwargs)) the result is passed as first argument to callable, the kwargs is combined with those given at construction, and the args are those given at construction. Its return value is returned.
__init__
(self, listener, *args, **kwargs)¶Bind args and kwargs to listener.