Skip to main content

Backport functools.singledispatch to older Pythons.

Project description

https://img.shields.io/pypi/v/singledispatch.svg https://img.shields.io/pypi/pyversions/singledispatch.svg tests Code style: Black https://img.shields.io/badge/skeleton-2022-informational https://tidelift.com/badges/package/pypi/singledispatch

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, singledispatchmethod in place of from functools import singledispatch, singledispatchmethod.

Maintenance

This backport is maintained on Github by Jason R. Coombs, one of the members of the core CPython team:

For Enterprise

Available as part of the Tidelift Subscription.

This project and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use.

Learn more.

Security Contact

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

singledispatch-4.0.0.tar.gz (19.3 kB view hashes)

Uploaded Source

Built Distribution

singledispatch-4.0.0-py2.py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page