| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:746a7b46-87d9-9a37-bf40-f5f1c91b7bed |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E036:D1D28:17B77A2:1F715B5:6B020C35 |
| html-safe-nonce | 0895d943809509ec1dcb1e89f8bbe251b92e20c55b85f55441869c41170caee2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDM2OkQxRDI4OjE3Qjc3QTI6MUY3MTVCNTo2QjAyMEMzNSIsInZpc2l0b3JfaWQiOiI0NjcxMTY2MTI4OTUxNzkwNjQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a2c223904d0918a077a507d91b03546020449bf55e534ab9a3165a99b5d522d7 |
| hovercard-subject-tag | pull_request:3229975946 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/144357/files |
| twitter:image | https://avatars.githubusercontent.com/u/99629139?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/99629139?s=400&v=4 |
| og:image:alt | Long log:
In free-threaded builds, setiter_len() and setiter_iternext() could race with concurrent set mutation and iterator exhaustion.
We now serialize operations on the iterator itself (and keep... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/144357/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F144357%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F144357%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 |
| Reload | https://github.com/python/cpython/pull/144357/files |
| Reload | https://github.com/python/cpython/pull/144357/files |
| Reload | https://github.com/python/cpython/pull/144357/files |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| hyongtao-code | https://github.com/hyongtao-code |
| python:main | https://github.com/python/cpython/tree/main |
| hyongtao-code:fix-data-race | https://github.com/hyongtao-code/cpython/tree/fix-data-race |
|
Conversation
50
| https://github.com/python/cpython/pull/144357 |
|
Commits
24
| https://github.com/python/cpython/pull/144357/commits |
|
Checks
23
| https://github.com/python/cpython/pull/144357/checks |
|
Files changed
| https://github.com/python/cpython/pull/144357/files |
| Please reload this page | https://github.com/python/cpython/pull/144357/files |
|
gh-144356: Make set iterator __length_hint__ and iternext race-safe under no-gil
| https://github.com/python/cpython/pull/144357/files#top |
|
Show all changes
24 commits
| https://github.com/python/cpython/pull/144357/files |
|
47d75fe
Fix data race in setiter_len() under no-gil
hyongtao-code Jan 31, 2026
| https://github.com/python/cpython/pull/144357/commits/47d75fee96b929343e8713e98e3ce9400b34a15c |
|
3e3785c
Add test case
hyongtao-code Jan 31, 2026
| https://github.com/python/cpython/pull/144357/commits/3e3785cb6cde129bb19b6db8278bae4351f45be9 |
|
229ced3
📜🤖 Added by blurb_it.
blurb-it[bot] Jan 31, 2026
| https://github.com/python/cpython/pull/144357/commits/229ced3b1c5be4e1cbeb4db70b7a5dd8645df955 |
|
cdcf88a
Resovle comments
hyongtao-code Feb 1, 2026
| https://github.com/python/cpython/pull/144357/commits/cdcf88ad474f675f8bc4fbc6956aca71e4667fba |
|
21f1478
Update test case: used_race and exhaust_race
hyongtao-code Feb 1, 2026
| https://github.com/python/cpython/pull/144357/commits/21f1478423e09eee0ea7c082d46fe5d6291e2cc3 |
|
a18c698
Add test case
hyongtao-code Feb 6, 2026
| https://github.com/python/cpython/pull/144357/commits/a18c6989439e6b0d69ddc7300eb5df3eea8c7baf |
|
79b5fbc
Try to address the comments
hyongtao-code Feb 6, 2026
| https://github.com/python/cpython/pull/144357/commits/79b5fbc0c3d0cd3f959ecf212af225511b7935d0 |
|
6ac15e0
Post fix
hyongtao-code Feb 6, 2026
| https://github.com/python/cpython/pull/144357/commits/6ac15e06a61ec4411c853f210e4785a293ea618c |
|
3222eef
Address comments
hyongtao-code Feb 8, 2026
| https://github.com/python/cpython/pull/144357/commits/3222eef47fe2a034b035458957772b980fd58a75 |
|
7fb39bc
Post fix
hyongtao-code Feb 8, 2026
| https://github.com/python/cpython/pull/144357/commits/7fb39bc6ed261316dff5fc6a2a1d11b3c4168233 |
|
78241a8
Update Lib/test/test_free_threading/test_set.py
hyongtao-code Feb 9, 2026
| https://github.com/python/cpython/pull/144357/commits/78241a862bd12a42ab369790ad8bedbe2fc2fc41 |
|
52285a2
Revert "Update Lib/test/test_free_threading/test_set.py"
hyongtao-code Feb 9, 2026
| https://github.com/python/cpython/pull/144357/commits/52285a27f79c1ca47b62fc8db8aaf317065cdb25 |
|
c9ece31
Address comments
hyongtao-code Feb 9, 2026
| https://github.com/python/cpython/pull/144357/commits/c9ece317157c650c44b744128608e66b31ef8acf |
|
e41e852
Enhance the test case as test_itertools.py
hyongtao-code Feb 10, 2026
| https://github.com/python/cpython/pull/144357/commits/e41e852002dbec727ad6d1a81e3dfd87725f0aef |
|
b32b5ec
Update NEWS
hyongtao-code Feb 10, 2026
| https://github.com/python/cpython/pull/144357/commits/b32b5ec7ec21a9386dadcc61d6529175d3df607b |
|
d14856c
Address comment
hyongtao-code Feb 10, 2026
| https://github.com/python/cpython/pull/144357/commits/d14856c7fe1f670ec7042ae43018825a68c7ada2 |
|
2a512a8
Address comments
hyongtao-code Feb 10, 2026
| https://github.com/python/cpython/pull/144357/commits/2a512a8fc72d95b4986cb16b7698155585d50cfb |
|
1ce898a
Update test cases
hyongtao-code Feb 11, 2026
| https://github.com/python/cpython/pull/144357/commits/1ce898a7548e456f6fff979b083468822d477c3d |
|
c110ddd
Address comments: unused code
hyongtao-code Feb 13, 2026
| https://github.com/python/cpython/pull/144357/commits/c110dddf7d12ddf18ccef9b07d8b7e924db62283 |
|
6120aef
Update Lib/test/test_free_threading/test_set.py
hyongtao-code Feb 13, 2026
| https://github.com/python/cpython/pull/144357/commits/6120aefd41b3810b3ce23d7e8ab84f1039e0c200 |
|
afea804
Update Objects/setobject.c
hyongtao-code Feb 13, 2026
| https://github.com/python/cpython/pull/144357/commits/afea804ea97500f41d565e9fc7729a8c3181e9b8 |
|
dc4eaa6
Remove empyt line
hyongtao-code Feb 14, 2026
| https://github.com/python/cpython/pull/144357/commits/dc4eaa6f798f768ea7ebdf4beba971ebbd2b3f1e |
|
b2ef863
Address comments
hyongtao-code Mar 11, 2026
| https://github.com/python/cpython/pull/144357/commits/b2ef863f605398c4457d1974d4f1f24ca5eb0327 |
|
8e2af8b
Merge branch 'main' into fix-data-race
hyongtao-code May 19, 2026
| https://github.com/python/cpython/pull/144357/commits/8e2af8b0c308ba2d4aaa945e1bddb1f02f4a0a27 |
|
Clear filters
| https://github.com/python/cpython/pull/144357/files |
| Please reload this page | https://github.com/python/cpython/pull/144357/files |
| Please reload this page | https://github.com/python/cpython/pull/144357/files |
|
test_set.py
| https://github.com/python/cpython/pull/144357/files#diff-b994f343b9e103f63fa93441746390c7d4224a671119c12cab4b85fb151c4af4 |
|
2026-01-31-03-40-28.gh-issue-144356.otfq_X.rst
| https://github.com/python/cpython/pull/144357/files#diff-64114e5a5083f8839987abfd2d16eeb22057c7fa3f8e1cdaf9711ca67592b73d |
|
setobject.c
| https://github.com/python/cpython/pull/144357/files#diff-537c6127e75079330edcb3775b0b9c2e4aeb34530dfe224ef2c96c3acb42111f |
| Lib/test/test_free_threading/test_set.py | https://github.com/python/cpython/pull/144357/files#diff-b994f343b9e103f63fa93441746390c7d4224a671119c12cab4b85fb151c4af4 |
|
View file
| https://github.com/python/cpython/blob/8e2af8b0c308ba2d4aaa945e1bddb1f02f4a0a27/Lib/test/test_free_threading/test_set.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/144357/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/144357/files#diff-b994f343b9e103f63fa93441746390c7d4224a671119c12cab4b85fb151c4af4 |
|
| https://github.com/python/cpython/pull/144357/files#diff-b994f343b9e103f63fa93441746390c7d4224a671119c12cab4b85fb151c4af4 |
| Misc/NEWS.d/next/Core_and_Builtins/2026-01-31-03-40-28.gh-issue-144356.otfq_X.rst | https://github.com/python/cpython/pull/144357/files#diff-64114e5a5083f8839987abfd2d16eeb22057c7fa3f8e1cdaf9711ca67592b73d |
|
View file
| https://github.com/python/cpython/blob/8e2af8b0c308ba2d4aaa945e1bddb1f02f4a0a27/Misc/NEWS.d/next/Core_and_Builtins/2026-01-31-03-40-28.gh-issue-144356.otfq_X.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/144357/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L216 |
| Objects/setobject.c | https://github.com/python/cpython/pull/144357/files#diff-537c6127e75079330edcb3775b0b9c2e4aeb34530dfe224ef2c96c3acb42111f |
|
View file
| https://github.com/python/cpython/blob/8e2af8b0c308ba2d4aaa945e1bddb1f02f4a0a27/Objects/setobject.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/144357/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/144357/files#diff-537c6127e75079330edcb3775b0b9c2e4aeb34530dfe224ef2c96c3acb42111f |
|
| https://github.com/python/cpython/pull/144357/files#diff-537c6127e75079330edcb3775b0b9c2e4aeb34530dfe224ef2c96c3acb42111f |
|
| https://github.com/python/cpython/pull/144357/files#diff-537c6127e75079330edcb3775b0b9c2e4aeb34530dfe224ef2c96c3acb42111f |
|
| https://github.com/python/cpython/pull/144357/files#diff-537c6127e75079330edcb3775b0b9c2e4aeb34530dfe224ef2c96c3acb42111f |
| eendebakpt | https://github.com/eendebakpt |
| Feb 10, 2026 | https://github.com/python/cpython/pull/144357/files#r2789927299 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/144357/files |
| hyongtao-code | https://github.com/hyongtao-code |
| Feb 13, 2026 | https://github.com/python/cpython/pull/144357/files#r2803696896 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/144357/files |
|
| https://github.com/python/cpython/pull/144357/files#diff-537c6127e75079330edcb3775b0b9c2e4aeb34530dfe224ef2c96c3acb42111f |
| Please reload this page | https://github.com/python/cpython/pull/144357/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |