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 Ruff https://readthedocs.org/projects/singledispatch/badge/?version=latest https://img.shields.io/badge/skeleton-2024-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.

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.1.1.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

singledispatch-4.1.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file singledispatch-4.1.1.tar.gz.

File metadata

  • Download URL: singledispatch-4.1.1.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for singledispatch-4.1.1.tar.gz
Algorithm Hash digest
SHA256 f200caabe9ddf6e3072332f51ebd4e6780bec24fc265291fae9298af07705ce8
MD5 bb7892b76047a9a18d8d18051b5e8b02
BLAKE2b-256 fe556e437396ff309f108b13b2e9dd3c2b9c07e8947c008be5699c21e303afea

See more details on using hashes here.

File details

Details for the file singledispatch-4.1.1-py3-none-any.whl.

File metadata

  • Download URL: singledispatch-4.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for singledispatch-4.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 43cb2faed6140af6c43f95c1621f750591d2ec2017005ca330691683e495e863
MD5 bc1547a58a2ecfc7a18eb7009b685547
BLAKE2b-256 d1bcb290bbc37675b39f1ec59f451f43ddf10caa631cc253cacd6a2f2d44d248

See more details on using hashes here.

Supported by

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