| 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 | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:c68514c2-2f3a-ecfe-61dd-35c7ca185ae1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D86C:FC5BE:31406D6:41703A1:6B01E808 |
| html-safe-nonce | 3937b2331bd4f9799210454e6ab798a052b9886c1856ed68f86429d9272b1a34 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODZDOkZDNUJFOjMxNDA2RDY6NDE3MDNBMTo2QjAxRTgwOCIsInZpc2l0b3JfaWQiOiI5MDQxMDg4ODU0ODk5MTU3MDAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9750516db723306ba9f08ad3b42ba94f15ea871da2e4523ceb71e14560bb9ac2 |
| hovercard-subject-tag | pull_request:4539355035 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/157572/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/f0c17afaf0caa7e0826d16cfcd7328703e827186d22cfbb772d6c76c52e91a52/python/cpython/pull/157572 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f0c17afaf0caa7e0826d16cfcd7328703e827186d22cfbb772d6c76c52e91a52/python/cpython/pull/157572 |
| og:image:alt | In debug mode at Python exit, check if immutable singleton objects have been modified by mistake to detect bugs in C extensions.
Add tests corrupting bytes, str, bool and int singleton objects.
... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/python/cpython/pull/157572#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157572 |
| 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%2F157572 |
| 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 |
| Reload | https://github.com/python/cpython/pull/157572 |
| Reload | https://github.com/python/cpython/pull/157572 |
| Reload | https://github.com/python/cpython/pull/157572 |
| 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 |
| https://github.com/python/cpython |
| vstinner | https://github.com/vstinner |
| python:main | https://github.com/python/cpython/tree/main |
| vstinner:global_obj_fini_check | https://github.com/vstinner/cpython/tree/global_obj_fini_check |
| Conversation | https://github.com/python/cpython/pull/157572 |
| Commits12 (12) | https://github.com/python/cpython/pull/157572/commits |
| Checks | https://github.com/python/cpython/pull/157572/checks |
| Files changed | https://github.com/python/cpython/pull/157572/files |
| gh-155742: Check singletons consistency at Python exit | https://github.com/python/cpython/pull/157572#top |
| vstinner | https://github.com/vstinner |
| python:main | https://github.com/python/cpython/tree/main |
| vstinner:global_obj_fini_check | https://github.com/vstinner/cpython/tree/global_obj_fini_check |
|
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Sep 15, 2026 | https://github.com/python/cpython/pull/157572#issue-5464758003 |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
| Treat bytes objects as immutable in C code #155742 | https://github.com/python/cpython/issues/155742 |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
|
| https://github.com/vstinner |
| pythongh-155742 | https://github.com/python/cpython/issues/155742 |
| : Check singletons consistencty at Python exit | https://github.com/python/cpython/pull/157572/commits/cd83f8d285bfa380527d34302a27a00d8039d016 |
| cd83f8d | https://github.com/python/cpython/pull/157572/commits/cd83f8d285bfa380527d34302a27a00d8039d016 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| FFY00 | https://github.com/FFY00 |
| ZeroIntensity | https://github.com/ZeroIntensity |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
| markshannon | https://github.com/markshannon |
| code owners | https://github.com/python/cpython/blob/5601e1ec3b5b4b94f189f8a457eea445cda6be45/.github/CODEOWNERS#L313 |
| September 15, 2026 16:38 | https://github.com/python/cpython/pull/157572#event-31188522588 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
Sep 15, 2026
| https://github.com/python/cpython/pull/157572#ref-issue-5144142594 |
|
Treat bytes objects as immutable in C code
#155742
| https://github.com/python/cpython/issues/155742 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Sep 15, 2026 | https://github.com/python/cpython/pull/157572#event-31188530101 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
|
Sep 15, 2026
| https://github.com/python/cpython/pull/157572#ref-pullrequest-5152664184 |
|
gh-155742: Check singletons consistencty in the garbage collector
#155801
| https://github.com/python/cpython/pull/155801 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Sep 15, 2026 | https://github.com/python/cpython/pull/157572#event-31188782587 |
|
| https://github.com/vstinner |
| Fix compiler warnings | https://github.com/python/cpython/pull/157572/commits/121f23ac7e93ad07e604b17386882fbbef9162bc |
| 121f23a | https://github.com/python/cpython/pull/157572/commits/121f23ac7e93ad07e604b17386882fbbef9162bc |
|
sqlite3.Blob slice assignment with a step corrupts an immortal bytes singleton
#155702
| https://github.com/python/cpython/issues/155702 |
|
bytearray.take_bytes() can corrupt shared single-byte bytes objects
#156995
| https://github.com/python/cpython/issues/156995 |
| https://github.com/encukou |
| encukou | https://github.com/encukou |
|
Sep 16, 2026
| https://github.com/python/cpython/pull/157572#pullrequestreview-5219874313 |
|
View reviewed changes
| https://github.com/python/cpython/pull/157572/files/121f23ac7e93ad07e604b17386882fbbef9162bc |
| Include/internal/pycore_global_objects_fini_generated.h | https://github.com/python/cpython/pull/157572/files/121f23ac7e93ad07e604b17386882fbbef9162bc#diff-31f682b2a04cda997f449a9816ee5fae305e3bfa7357afcb794615921c6a88d2 |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
|
| https://github.com/vstinner |
| Use loops in generated finalizer code | https://github.com/python/cpython/pull/157572/commits/03d611aa2e0519394803ae39cf2e54798b7957eb |
| 03d611a | https://github.com/python/cpython/pull/157572/commits/03d611aa2e0519394803ae39cf2e54798b7957eb |
| https://github.com/encukou |
| encukou | https://github.com/encukou |
|
Sep 16, 2026
| https://github.com/python/cpython/pull/157572#pullrequestreview-5223534759 |
|
View reviewed changes
| https://github.com/python/cpython/pull/157572/files/03d611aa2e0519394803ae39cf2e54798b7957eb |
| Include/internal/pycore_global_objects_fini_generated.h | https://github.com/python/cpython/pull/157572/files/03d611aa2e0519394803ae39cf2e54798b7957eb#diff-31f682b2a04cda997f449a9816ee5fae305e3bfa7357afcb794615921c6a88d2 |
| encukou | https://github.com/encukou |
| Sep 16, 2026 | https://github.com/python/cpython/pull/157572#discussion_r4026743697 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
| Include/internal/pycore_global_objects_fini_generated.h | https://github.com/python/cpython/pull/157572/files/03d611aa2e0519394803ae39cf2e54798b7957eb#diff-31f682b2a04cda997f449a9816ee5fae305e3bfa7357afcb794615921c6a88d2 |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
| Include/internal/pycore_global_objects_fini_generated.h | https://github.com/python/cpython/pull/157572/files/03d611aa2e0519394803ae39cf2e54798b7957eb#diff-31f682b2a04cda997f449a9816ee5fae305e3bfa7357afcb794615921c6a88d2 |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
| Include/internal/pycore_global_objects_fini_generated.h | https://github.com/python/cpython/pull/157572/files/03d611aa2e0519394803ae39cf2e54798b7957eb#diff-31f682b2a04cda997f449a9816ee5fae305e3bfa7357afcb794615921c6a88d2 |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
|
| https://github.com/vstinner |
| Address Petr's review | https://github.com/python/cpython/pull/157572/commits/03f6eedd9d575d2e9b25a1dc604145b4451d4e92 |
| 03f6eed | https://github.com/python/cpython/pull/157572/commits/03f6eedd9d575d2e9b25a1dc604145b4451d4e92 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Sep 16, 2026 | https://github.com/python/cpython/pull/157572#issuecomment-5699133596 |
| @encukou | https://github.com/encukou |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
|
| https://github.com/vstinner |
| Always call _PyBytes_CheckOverflow() | https://github.com/python/cpython/pull/157572/commits/d195ee0f4c7c19b33617bf9e9e0d3f8440af2a76 |
| d195ee0 | https://github.com/python/cpython/pull/157572/commits/d195ee0f4c7c19b33617bf9e9e0d3f8440af2a76 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Sep 16, 2026 | https://github.com/python/cpython/pull/157572#issuecomment-5700075803 |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
|
Sep 16, 2026
| https://github.com/python/cpython/pull/157572#pullrequestreview-5224871240 |
|
View reviewed changes
| https://github.com/python/cpython/pull/157572/files/d195ee0f4c7c19b33617bf9e9e0d3f8440af2a76 |
| Lib/test/test_capi/test_misc.py | https://github.com/python/cpython/pull/157572/files/d195ee0f4c7c19b33617bf9e9e0d3f8440af2a76#diff-4178d53cac5b09685584df43c65b66797dd4ca4df491b2081565d95ba90aaa36 |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
|
| https://github.com/vstinner |
| Apply suggestion from | https://github.com/python/cpython/pull/157572/commits/17902a6f0a27310114f6e8b8208698cc3fb6212b |
| @vstinner | https://github.com/vstinner |
| 17902a6 | https://github.com/python/cpython/pull/157572/commits/17902a6f0a27310114f6e8b8208698cc3fb6212b |
| https://github.com/encukou |
| encukou | https://github.com/encukou |
| Sep 17, 2026 | https://github.com/python/cpython/pull/157572#issuecomment-5711574040 |
| vstinner#17 | https://github.com/vstinner/cpython/pull/17 |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
| encukou | https://github.com/encukou |
| September 17, 2026 13:27 | https://github.com/python/cpython/pull/157572#commits-pushed-fd6eccb |
|
| https://github.com/encukou |
| Share more code in _PyStaticObject_CheckUnicode ( | https://github.com/python/cpython/pull/157572/commits/fd6eccb1c01716d30dbaf32cd62e7f1835716382 |
| #17 | https://github.com/vstinner/cpython/pull/17 |
| ) | https://github.com/python/cpython/pull/157572/commits/fd6eccb1c01716d30dbaf32cd62e7f1835716382 |
| fd6eccb | https://github.com/python/cpython/pull/157572/commits/fd6eccb1c01716d30dbaf32cd62e7f1835716382 |
|
| https://github.com/vstinner |
| Add pycore_global_objects_fini.h internal header | https://github.com/python/cpython/pull/157572/commits/05cea1f7fc7a5e1b6c7cafb6dc2b966b783de94a |
| 05cea1f | https://github.com/python/cpython/pull/157572/commits/05cea1f7fc7a5e1b6c7cafb6dc2b966b783de94a |
|
| https://github.com/vstinner |
| Update make regen-global-objects | https://github.com/python/cpython/pull/157572/commits/bfa5de52bb4a74cc29f48f250417be2013e2e205 |
| bfa5de5 | https://github.com/python/cpython/pull/157572/commits/bfa5de52bb4a74cc29f48f250417be2013e2e205 |
|
| https://github.com/vstinner |
| Update test_capi | https://github.com/python/cpython/pull/157572/commits/809e9119ce9df2631fbf74958818a26dc8c545c4 |
| 809e911 | https://github.com/python/cpython/pull/157572/commits/809e9119ce9df2631fbf74958818a26dc8c545c4 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| AA-Turner | https://github.com/AA-Turner |
| emmatyping | https://github.com/emmatyping |
| erlend-aasland | https://github.com/erlend-aasland |
| code owners | https://github.com/python/cpython/blob/1e03154546c5c1af5c0c746a2bdedc758acdec93/.github/CODEOWNERS#L186 |
| September 17, 2026 12:31 | https://github.com/python/cpython/pull/157572#event-31319071107 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| itamaro | https://github.com/itamaro |
| code owner | https://github.com/python/cpython/blob/1e03154546c5c1af5c0c746a2bdedc758acdec93/.github/CODEOWNERS#L85 |
| September 17, 2026 12:31 | https://github.com/python/cpython/pull/157572#event-31319071585 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Sep 17, 2026 | https://github.com/python/cpython/pull/157572#issuecomment-5714525803 |
| @encukou | https://github.com/encukou |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
| vstinner | https://github.com/vstinner |
| September 17, 2026 14:43 | https://github.com/python/cpython/pull/157572#commits-pushed-2cf826f |
|
| https://github.com/vstinner |
| Merge branch 'main' into global_obj_fini_check | https://github.com/python/cpython/pull/157572/commits/2cf826f721c776673c5e3178d281f882f57af42e |
| 2cf826f | https://github.com/python/cpython/pull/157572/commits/2cf826f721c776673c5e3178d281f882f57af42e |
|
| https://github.com/vstinner |
| Move _PyHamt_BitmapNode_Type include | https://github.com/python/cpython/pull/157572/commits/a1556153e5c18ea780cfca6ae4ad6c6575466c3e |
| a155615 | https://github.com/python/cpython/pull/157572/commits/a1556153e5c18ea780cfca6ae4ad6c6575466c3e |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| 8bcbcf8 | https://github.com/python/cpython/commit/8bcbcf8cfc73844154f87c29b37ebb51cd8cb9b7 |
| Sep 17, 2026 | https://github.com/python/cpython/pull/157572#event-31325222775 |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| September 17, 2026 14:03 | https://github.com/python/cpython/pull/157572#event-31325225813 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Sep 17, 2026 | https://github.com/python/cpython/pull/157572#event-31325227416 |
| https://github.com/vstinner |
| vstinner | https://github.com/vstinner |
| Sep 17, 2026 | https://github.com/python/cpython/pull/157572#issuecomment-5715680404 |
| @encukou | https://github.com/encukou |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157572 |
|
| https://github.com/encukou |
|
encukou
| https://github.com/encukou |
|
| https://github.com/python/cpython/pull/157572/files/03f6eedd9d575d2e9b25a1dc604145b4451d4e92 |
|
| https://github.com/markshannon |
|
markshannon
| https://github.com/markshannon |
|
| https://github.com/ericsnowcurrently |
|
ericsnowcurrently
| https://github.com/ericsnowcurrently |
|
| https://github.com/ZeroIntensity |
|
ZeroIntensity
| https://github.com/ZeroIntensity |
|
| https://github.com/FFY00 |
|
FFY00
| https://github.com/FFY00 |
|
| https://github.com/erlend-aasland |
|
erlend-aasland
| https://github.com/erlend-aasland |
|
| https://github.com/AA-Turner |
|
AA-Turner
| https://github.com/AA-Turner |
|
| https://github.com/emmatyping |
|
emmatyping
| https://github.com/emmatyping |
|
| https://github.com/itamaro |
|
itamaro
| https://github.com/itamaro |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
| Please reload this page | https://github.com/python/cpython/pull/157572 |
|
| https://github.com/vstinner |
|
| https://github.com/encukou |
|
| 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 |