René's URL Explorer Experiment


Title: gh-141805: avoid increase the set->used twice when the __eq__ trigger another add by kemingy · Pull Request #142007 · python/cpython · GitHub

Open Graph Title: gh-141805: avoid increase the set->used twice when the __eq__ trigger another add by kemingy · Pull Request #142007 · python/cpython

X Title: gh-141805: avoid increase the set->used twice when the __eq__ trigger another add by kemingy · Pull Request #142007 · python/cpython

Description: gh-141805: goes directly to the found_unused_or_dummy when finding a dummy slot in set.add This avoids triggering the __eq__ in the next iteration by the PyObject_RichCompareBool, which might intro...

Open Graph Description: gh-141805: goes directly to the found_unused_or_dummy when finding a dummy slot in set.add This avoids triggering the __eq__ in the next iteration by the PyObject_RichCompareBool, which might intro...

X Description: gh-141805: goes directly to the found_unused_or_dummy when finding a dummy slot in set.add This avoids triggering the __eq__ in the next iteration by the PyObject_RichCompareBool, which might intro...

Opengraph URL: https://github.com/python/cpython/pull/142007

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:f8314fcc-00d6-3317-97f8-ee57e7f84944
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA244:70D8F:9475FE:D030AF:696A527B
html-safe-nonce0aaf0c55876ce8a3b7fb4439ddd90df4ad3627314984802eb415b67b46b610bf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjQ0OjcwRDhGOjk0NzVGRTpEMDMwQUY6Njk2QTUyN0IiLCJ2aXNpdG9yX2lkIjoiODI3NDk3ODQ3ODY3NDgyNTg1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac316e4879811a7aafc400d1f1d2f8bbabced1b791667063bcd873af45c230260a
hovercard-subject-tagpull_request:3050337811
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/142007/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1fdcc308bc8a132a3be15114e4b919aa364c625af4b9bc00ce9d80a1aa9c05cf/python/cpython/pull/142007
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1fdcc308bc8a132a3be15114e4b919aa364c625af4b9bc00ce9d80a1aa9c05cf/python/cpython/pull/142007
og:image:altgh-141805: goes directly to the found_unused_or_dummy when finding a dummy slot in set.add This avoids triggering the __eq__ in the next iteration by the PyObject_RichCompareBool, which might intro...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekemingy
hostnamegithub.com
expected-hostnamegithub.com
None3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release63c426b30d262aba269ef14c40e3c817b384cd61
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/142007#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F142007
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F142007
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/142007
Reloadhttps://github.com/python/cpython/pull/142007
Reloadhttps://github.com/python/cpython/pull/142007
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/142007
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/142007
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/142007#issue-comment-box
kemingyhttps://github.com/kemingy
python:mainhttps://github.com/python/cpython/tree/main
kemingy:gh-141805https://github.com/kemingy/cpython/tree/gh-141805
gh-141805: avoid increase the set->used twice when the __eq__ trigger another add https://github.com/python/cpython/pull/142007#top
kemingyhttps://github.com/kemingy
python:mainhttps://github.com/python/cpython/tree/main
kemingy:gh-141805https://github.com/kemingy/cpython/tree/gh-141805
Conversation 13 https://github.com/python/cpython/pull/142007
Commits 6 https://github.com/python/cpython/pull/142007/commits
Checks 44 https://github.com/python/cpython/pull/142007/checks
Files changed 3 https://github.com/python/cpython/pull/142007/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/kemingy
kemingyhttps://github.com/kemingy
Nov 27, 2025https://github.com/python/cpython/pull/142007#issue-3670664840
gh-141805https://github.com/python/cpython/issues/141805
#141805 (comment)https://github.com/python/cpython/issues/141805#issuecomment-3584997981
Please reload this pagehttps://github.com/python/cpython/pull/142007
https://github.com/kemingy
fix: avoid increase the set->used twice when the __eq__ trigger anoth…https://github.com/python/cpython/pull/142007/commits/cfdeb5c14589224215a6455674ebf9261defd13a
cfdeb5chttps://github.com/python/cpython/pull/142007/commits/cfdeb5c14589224215a6455674ebf9261defd13a
https://github.com/kemingy
kemingyhttps://github.com/kemingy
rhettingerhttps://github.com/rhettinger
code ownerhttps://github.com/python/cpython/blob/bc9e63dd9d2931771415cca1b0ed774471d523c0/.github/CODEOWNERS#L209
November 27, 2025 09:52https://github.com/python/cpython/pull/142007#event-21214744777
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Nov 27, 2025https://github.com/python/cpython/pull/142007#event-21214745775
https://github.com/kemingy
kemingyhttps://github.com/kemingy
Nov 27, 2025https://github.com/python/cpython/pull/142007#event-21214769207
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 27, 2025 https://github.com/python/cpython/pull/142007#ref-issue-3649078840
Segfault from repr() of a corrupted set #141805 https://github.com/python/cpython/issues/141805
https://github.com/kemingy
add testcase for dummy slothttps://github.com/python/cpython/pull/142007/commits/4a2440db3cf5763dc6bd60e7f47e157257e7e7ea
4a2440dhttps://github.com/python/cpython/pull/142007/commits/4a2440db3cf5763dc6bd60e7f47e157257e7e7ea
https://github.com/dr-carlos
dr-carloshttps://github.com/dr-carlos
Nov 27, 2025 https://github.com/python/cpython/pull/142007#pullrequestreview-3517022283
View reviewed changes https://github.com/python/cpython/pull/142007/files/4a2440db3cf5763dc6bd60e7f47e157257e7e7ea
Misc/NEWS.d/next/Core_and_Builtins/2025-11-27-17-47-09.gh-issue-141805.TT0biF.rsthttps://github.com/python/cpython/pull/142007/files/4a2440db3cf5763dc6bd60e7f47e157257e7e7ea#diff-44ae6541b730286433354f8c9a86cf719e7bf0feb37235aa265f8e015b186c64
Please reload this pagehttps://github.com/python/cpython/pull/142007
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Nov 27, 2025https://github.com/python/cpython/pull/142007#event-21232423330
kemingyhttps://github.com/kemingy
November 28, 2025 08:13https://github.com/python/cpython/pull/142007#commits-pushed-08f7e68
https://github.com/kemingy
polish the NEWS to make it easy to understand for usershttps://github.com/python/cpython/pull/142007/commits/08f7e68ab3c01971005d38657131d0db5e10498f
08f7e68https://github.com/python/cpython/pull/142007/commits/08f7e68ab3c01971005d38657131d0db5e10498f
https://github.com/kumaraditya303
Merge branch 'main' intohttps://github.com/python/cpython/pull/142007/commits/cf1400fd0897b4bfcf90ea4cd93b69f9e99d709b
pythongh-141805https://github.com/python/cpython/issues/141805
cf1400fhttps://github.com/python/cpython/pull/142007/commits/cf1400fd0897b4bfcf90ea4cd93b69f9e99d709b
https://github.com/efimov-mikhail
efimov-mikhailhttps://github.com/efimov-mikhail
Dec 20, 2025 https://github.com/python/cpython/pull/142007#pullrequestreview-3601211437
View reviewed changes https://github.com/python/cpython/pull/142007/files/cf1400fd0897b4bfcf90ea4cd93b69f9e99d709b
efimov-mikhailhttps://github.com/efimov-mikhail
https://github.com/python/cpython/pull/142007#pullrequestreview-3601211437
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/142007
Lib/test/test_set.pyhttps://github.com/python/cpython/pull/142007/files/cf1400fd0897b4bfcf90ea4cd93b69f9e99d709b#diff-16129e9911d8b23ed7e37808ea9891475f6e3cc94c2bd5ff22602dc0cba336da
Please reload this pagehttps://github.com/python/cpython/pull/142007
Misc/NEWS.d/next/Core_and_Builtins/2025-11-27-17-47-09.gh-issue-141805.TT0biF.rsthttps://github.com/python/cpython/pull/142007/files/cf1400fd0897b4bfcf90ea4cd93b69f9e99d709b#diff-44ae6541b730286433354f8c9a86cf719e7bf0feb37235aa265f8e015b186c64
Please reload this pagehttps://github.com/python/cpython/pull/142007
https://github.com/efimov-mikhail
efimov-mikhailhttps://github.com/efimov-mikhail
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Dec 20, 2025https://github.com/python/cpython/pull/142007#event-21685940448
kemingyhttps://github.com/kemingy
December 22, 2025 10:42https://github.com/python/cpython/pull/142007#commits-pushed-13ccc5b
https://github.com/kemingy
add repr to trigger the segfault, rephrase the NEWShttps://github.com/python/cpython/pull/142007/commits/13ccc5b6cca1fef27f775249b8f751f95325301f
13ccc5bhttps://github.com/python/cpython/pull/142007/commits/13ccc5b6cca1fef27f775249b8f751f95325301f
https://github.com/efimov-mikhail
Merge branch 'main' intohttps://github.com/python/cpython/pull/142007/commits/de4dbb4b7bebda23d43e0d68fcdabcd79e501c7d
pythongh-141805https://github.com/python/cpython/issues/141805
de4dbb4https://github.com/python/cpython/pull/142007/commits/de4dbb4b7bebda23d43e0d68fcdabcd79e501c7d
https://github.com/efimov-mikhail
efimov-mikhailhttps://github.com/efimov-mikhail
Dec 22, 2025 https://github.com/python/cpython/pull/142007#pullrequestreview-3604175970
View reviewed changes https://github.com/python/cpython/pull/142007/files/de4dbb4b7bebda23d43e0d68fcdabcd79e501c7d
efimov-mikhailhttps://github.com/efimov-mikhail
https://github.com/python/cpython/pull/142007#pullrequestreview-3604175970
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/142007
https://github.com/kemingy
kemingyhttps://github.com/kemingy
Jan 8, 2026https://github.com/python/cpython/pull/142007#issuecomment-3721712079
@rhettingerhttps://github.com/rhettinger
Please reload this pagehttps://github.com/python/cpython/pull/142007
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
January 12, 2026 18:45https://github.com/python/cpython/pull/142007#event-21997006477
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Jan 13, 2026 https://github.com/python/cpython/pull/142007#ref-pullrequest-3808389619
Add regression test for add() after remove() with hash collision in set #143781 https://github.com/python/cpython/pull/143781
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Jan 13, 2026 https://github.com/python/cpython/pull/142007#pullrequestreview-3654808646
View reviewed changes https://github.com/python/cpython/pull/142007/files/de4dbb4b7bebda23d43e0d68fcdabcd79e501c7d
Objects/setobject.chttps://github.com/python/cpython/pull/142007/files/de4dbb4b7bebda23d43e0d68fcdabcd79e501c7d#diff-537c6127e75079330edcb3775b0b9c2e4aeb34530dfe224ef2c96c3acb42111f
serhiy-storchakahttps://github.com/serhiy-storchaka
Jan 13, 2026https://github.com/python/cpython/pull/142007#discussion_r2685609150
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/142007
serhiy-storchakahttps://github.com/serhiy-storchaka
Jan 13, 2026https://github.com/python/cpython/pull/142007#discussion_r2685964347
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#143781https://github.com/python/cpython/pull/143781
Please reload this pagehttps://github.com/python/cpython/pull/142007
https://github.com/rhettinger
rhettingerhttps://github.com/rhettinger
DO-NOT-MERGE https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE
Jan 14, 2026https://github.com/python/cpython/pull/142007#event-22052845490
https://github.com/kemingy
kemingyhttps://github.com/kemingy
Jan 15, 2026https://github.com/python/cpython/pull/142007#event-22057667376
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F142007
https://github.com/serhiy-storchaka
serhiy-storchaka https://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/142007/files/de4dbb4b7bebda23d43e0d68fcdabcd79e501c7d
https://github.com/efimov-mikhail
efimov-mikhail https://github.com/efimov-mikhail
https://github.com/python/cpython/pull/142007/files/de4dbb4b7bebda23d43e0d68fcdabcd79e501c7d
https://github.com/rhettinger
rhettinger https://github.com/rhettinger
https://github.com/dr-carlos
dr-carlos https://github.com/dr-carlos
https://github.com/python/cpython/pull/142007/files/4a2440db3cf5763dc6bd60e7f47e157257e7e7ea
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
DO-NOT-MERGE https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Please reload this pagehttps://github.com/python/cpython/pull/142007
https://github.com/kemingy
https://github.com/serhiy-storchaka
https://github.com/efimov-mikhail
https://github.com/dr-carlos
https://github.com/rhettinger
https://github.com/kumaraditya303
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.