Lines Matching defs:dispatch
86 # infinite recursion that could occur when the operator dispatch logic
657 ### singledispatch() - single-dispatch generic function decorator
793 raise RuntimeError("Ambiguous dispatch: {} or {}".format(
801 """Single-dispatch generic function decorator.
818 def dispatch(cls):
819 """generic_func.dispatch(cls) -> <function implementation>
821 Runs the dispatch algorithm to return the best available implementation
909 return dispatch(args[0].__class__)(*args, **kw)
914 wrapper.dispatch = dispatch
923 """Single-dispatch generic method descriptor.
945 method = self.dispatcher.dispatch(args[0].__class__)