]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-127750: Fix and optimize functools.singledispatchmethod() (GH-130008)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 17 Feb 2025 09:11:20 +0000 (11:11 +0200)
committerGitHub <noreply@github.com>
Mon, 17 Feb 2025 09:11:20 +0000 (11:11 +0200)
commit395335d0ff292a15e26575e06f603304d9161ee1
treed72658302db9fe05f24a64a011175d2b14af18ef
parentfb2d325725dcc881868b576b9d0d9f4bf7f24fe0
gh-127750: Fix and optimize functools.singledispatchmethod() (GH-130008)

Remove broken singledispatchmethod caching introduced in gh-85160.
Achieve the same performance using different optimization.

* Add more tests.

* Fix issues with __module__ and __doc__ descriptors.
Lib/functools.py
Lib/test/test_functools.py
Misc/NEWS.d/next/Library/2025-02-11-18-37-26.gh-issue-127750.41SDhF.rst [new file with mode: 0644]