Backport functools.singledispatch from Python 3.4 to Python 2.6-3.3.
PEP 443 proposed to expose a mechanism in the functools standard library module in Python 3.4 that provides a simple form of generic programming known as single-dispatch generic functions.
This library is a backport of this functionality and its evolution.
Refer to the upstream documentation for API guidance. To use the backport, simply use from singledispatch import singledispatch in place of from functools import singledispatch.
This backport is maintained on Github by Jason R. Coombs, one of the members of the core CPython team:
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for singledispatch-3.6.2-py2.py3-none-any.whl