mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 04:16:27 -04:00
Multimethod provides a decorator for adding multiple argument dispatching to functions. The decorator creates a multimethod object as needed, and registers the function with its annotations. There are several multiple dispatch libraries on PyPI. This one aims for simplicity and speed. With caching of argument types, it should be the fastest pure Python implementation possible.
7 lines
381 B
Text
7 lines
381 B
Text
Multimethod provides a decorator for adding multiple argument dispatching to
|
|
functions. The decorator creates a multimethod object as needed, and registers
|
|
the function with its annotations.
|
|
|
|
There are several multiple dispatch libraries on PyPI. This one aims for
|
|
simplicity and speed. With caching of argument types, it should be the fastest
|
|
pure Python implementation possible.
|