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-2025-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.2.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

singledispatch-4.1.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for singledispatch-4.1.2.tar.gz
Algorithm Hash digest
SHA256 0ad18e5a55c54a836a695a4e7c12faa05adfe88c7eeb64dcd331a4b13934c3b6
MD5 79cc273003ca494f442d3b04d450de6c
BLAKE2b-256 9e2c7a556f0b5c96161417df04b9af069b8e4d060c425f4369b9966271f70ba4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for singledispatch-4.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 24802c4e743a252645c461e71abcaa95c3f678a96688e72bb0bf63e663018c7a
MD5 83757c4476e8c3b1c6a8e55e82884424
BLAKE2b-256 719b93adabae9d3979ac081f4488d3da1cf8ad8f3b27660f896d59c5a088253b

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