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 introduce another set.add in the user code. Like: tasks = set() class Corrupt: def __eq__(self, value): tasks.add(self) return False As described in #141805 (comment)

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f294df60-1cfa-7cbb-e6da-ab3063905352
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9C32:19BAB9:635B5F:834B56:696B4756
html-safe-nonce4fd04793fdd446f20eaa8287e816ee4ea518f5fe61966c722e2952a32e07127c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzMyOjE5QkFCOTo2MzVCNUY6ODM0QjU2OjY5NkI0NzU2IiwidmlzaXRvcl9pZCI6IjE4MDkyODQ1OTMzMDMxMTE1MTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8ad2c11138dd6928c6b5a87c3bd0448b369d2873715b880423bdac7e0322aeeb
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/142007/files
twitter:imagehttps://avatars.githubusercontent.com/u/12974685?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/12974685?s=400&v=4
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:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/142007/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F142007%2Ffiles
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%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/142007/files
Reloadhttps://github.com/python/cpython/pull/142007/files
Reloadhttps://github.com/python/cpython/pull/142007/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/142007/files
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/files
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
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
gh-141805: avoid increase the set->used twice when the __eq__ trigger another add https://github.com/python/cpython/pull/142007/files#top
Show all changes 6 commits https://github.com/python/cpython/pull/142007/files
cfdeb5c fix: avoid increase the set->used twice when the __eq__ trigger anoth… kemingy Nov 27, 2025 https://github.com/python/cpython/pull/142007/commits/cfdeb5c14589224215a6455674ebf9261defd13a
4a2440d add testcase for dummy slot kemingy Nov 27, 2025 https://github.com/python/cpython/pull/142007/commits/4a2440db3cf5763dc6bd60e7f47e157257e7e7ea
08f7e68 polish the NEWS to make it easy to understand for users kemingy Nov 28, 2025 https://github.com/python/cpython/pull/142007/commits/08f7e68ab3c01971005d38657131d0db5e10498f
cf1400f Merge branch 'main' into gh-141805 kumaraditya303 Dec 17, 2025 https://github.com/python/cpython/pull/142007/commits/cf1400fd0897b4bfcf90ea4cd93b69f9e99d709b
13ccc5b add repr to trigger the segfault, rephrase the NEWS kemingy Dec 22, 2025 https://github.com/python/cpython/pull/142007/commits/13ccc5b6cca1fef27f775249b8f751f95325301f
de4dbb4 Merge branch 'main' into gh-141805 efimov-mikhail Dec 22, 2025 https://github.com/python/cpython/pull/142007/commits/de4dbb4b7bebda23d43e0d68fcdabcd79e501c7d
Clear filters https://github.com/python/cpython/pull/142007/files
Please reload this pagehttps://github.com/python/cpython/pull/142007/files
Please reload this pagehttps://github.com/python/cpython/pull/142007/files
test_set.py https://github.com/python/cpython/pull/142007/files#diff-16129e9911d8b23ed7e37808ea9891475f6e3cc94c2bd5ff22602dc0cba336da
2025-11-27-17-47-09.gh-issue-141805.TT0biF.rst https://github.com/python/cpython/pull/142007/files#diff-44ae6541b730286433354f8c9a86cf719e7bf0feb37235aa265f8e015b186c64
setobject.c https://github.com/python/cpython/pull/142007/files#diff-537c6127e75079330edcb3775b0b9c2e4aeb34530dfe224ef2c96c3acb42111f
Lib/test/test_set.pyhttps://github.com/python/cpython/pull/142007/files#diff-16129e9911d8b23ed7e37808ea9891475f6e3cc94c2bd5ff22602dc0cba336da
View file https://github.com/kemingy/cpython/blob/de4dbb4b7bebda23d43e0d68fcdabcd79e501c7d/Lib/test/test_set.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/142007/{{ revealButtonHref }}
https://github.com/python/cpython/pull/142007/files#diff-16129e9911d8b23ed7e37808ea9891475f6e3cc94c2bd5ff22602dc0cba336da
Please reload this pagehttps://github.com/python/cpython/pull/142007/files
https://github.com/python/cpython/pull/142007/files#diff-16129e9911d8b23ed7e37808ea9891475f6e3cc94c2bd5ff22602dc0cba336da
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#diff-44ae6541b730286433354f8c9a86cf719e7bf0feb37235aa265f8e015b186c64
View file https://github.com/kemingy/cpython/blob/de4dbb4b7bebda23d43e0d68fcdabcd79e501c7d/Misc/NEWS.d/next/Core_and_Builtins/2025-11-27-17-47-09.gh-issue-141805.TT0biF.rst
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/python/cpython/pull/142007/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/142007/{{ revealButtonHref }}
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L215
Objects/setobject.chttps://github.com/python/cpython/pull/142007/files#diff-537c6127e75079330edcb3775b0b9c2e4aeb34530dfe224ef2c96c3acb42111f
View file https://github.com/kemingy/cpython/blob/de4dbb4b7bebda23d43e0d68fcdabcd79e501c7d/Objects/setobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/142007/{{ revealButtonHref }}
https://github.com/python/cpython/pull/142007/files#diff-537c6127e75079330edcb3775b0b9c2e4aeb34530dfe224ef2c96c3acb42111f
serhiy-storchakahttps://github.com/serhiy-storchaka
Jan 13, 2026https://github.com/python/cpython/pull/142007/files#r2685609150
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/142007/files
serhiy-storchakahttps://github.com/serhiy-storchaka
Jan 13, 2026https://github.com/python/cpython/pull/142007/files#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/files
https://github.com/python/cpython/pull/142007/files#diff-537c6127e75079330edcb3775b0b9c2e4aeb34530dfe224ef2c96c3acb42111f
Please reload this pagehttps://github.com/python/cpython/pull/142007/files
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.