FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-127750: Fix functools.singledispatchmethod() by eendebakpt · Pull Request #130029 · python/cpython · GitHub

Repository navigation

[3.13] gh-127750: Fix functools.singledispatchmethod() - #130029

Merged
serhiy-storchaka merged 3 commits into
python:3.13from
eendebakpt:revert_gh_107148
Feb 17, 2025
Merged

serhiy-storchaka merged 3 commits into
python:3.13from
eendebakpt:revert_gh_107148

Conversation

eendebakpt commented Feb 12, 2025 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

In this PR we revert the changes from #107148 (but keep the added tests). This addresses

  • Collisions between different objects with equal __hash__/__eq__
  • Keeping object instances alive

For 3.14+ there are open PRs to address the same issues without the performance regression, but for 3.13 it seems safer to revert the changes (#127750 (comment))

@serhiy-storchaka @Yhg1s

eendebakpt added the 3.13 only security fixes label Feb 12, 2025
eendebakpt changed the title gh-127750: Fix singledispatchmethod [3.13] gh-127750: Fix singledispatchmethod Feb 12, 2025
eendebakpt changed the title [3.13] gh-127750: Fix singledispatchmethod [3.13] gh-127750: Fix functools.singledispatchmethod() Feb 12, 2025
ZeroIntensity removed the 3.13 only security fixes label Feb 12, 2025

serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM.

serhiy-storchaka merged commit 8f33c7a into python:3.13 Feb 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL