René's URL Explorer Experiment


Title: gh-161184: Use a managed dict and weakref list for the _io types by eendebakpt · Pull Request #161236 · python/cpython · GitHub

Open Graph Title: gh-161184: Use a managed dict and weakref list for the _io types by eendebakpt · Pull Request #161236 · python/cpython

X Title: gh-161184: Use a managed dict and weakref list for the _io types by eendebakpt · Pull Request #161236 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: _io._IOBase and its C subclasses carried an explicit dict and weakreflist field exposed through __dictoffset__/__weaklistoffset__. This PR switches to Py_TPFLAGS_MANAGED_DICT | Py_TPFLAGS_MANAGED_W...

X Description: _io._IOBase and its C subclasses carried an explicit dict and weakreflist field exposed through __dictoffset__/__weaklistoffset__. This PR switches to Py_TPFLAGS_MANAGED_DICT | Py_TPFLAGS_MANAGED_W...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:1d8c145c-6d4c-c047-5ca3-49118b970db5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBD6C:211F05:13C91A:190B9D:6B01FFE6
html-safe-noncebce13b39233187aee5dd53f3a92efbfdacd1178ed8d3bc964bbc868f23836893
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDZDOjIxMUYwNToxM0M5MUE6MTkwQjlEOjZCMDFGRkU2IiwidmlzaXRvcl9pZCI6Ijg2Mzk1Nzg3MjkyMDAzNTMyNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac842f5c8a420414cb7dcea3912691d0ede4b6ebad027f825ee74b15f415e8eb93
hovercard-subject-tagpull_request:5134010138
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/161236/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/53ff2f414d3c56b0196cfdbfd42572d820a4fc95e26e516161aafab50a4b4535/python/cpython/pull/161236
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/53ff2f414d3c56b0196cfdbfd42572d820a4fc95e26e516161aafab50a4b4535/python/cpython/pull/161236
og:image:alt_io._IOBase and its C subclasses carried an explicit dict and weakreflist field exposed through __dictoffset__/__weaklistoffset__. This PR switches to Py_TPFLAGS_MANAGED_DICT | Py_TPFLAGS_MANAGED_W...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameeendebakpt
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/161236#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F161236
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F161236
Sign uphttps://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/161236
Reloadhttps://github.com/python/cpython/pull/161236
Reloadhttps://github.com/python/cpython/pull/161236
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
eendebakpt:io-managed-weakrefhttps://github.com/eendebakpt/cpython/tree/io-managed-weakref
Conversationhttps://github.com/python/cpython/pull/161236
Commits7 (7)https://github.com/python/cpython/pull/161236/commits
Checkshttps://github.com/python/cpython/pull/161236/checks
Files changedhttps://github.com/python/cpython/pull/161236/files
gh-161184: Use a managed dict and weakref list for the _io typeshttps://github.com/python/cpython/pull/161236#top
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
eendebakpt:io-managed-weakrefhttps://github.com/eendebakpt/cpython/tree/io-managed-weakref
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Nov 3, 2026https://github.com/python/cpython/pull/161236#issue-6178803418
Please reload this pagehttps://github.com/python/cpython/pull/161236
#160616https://github.com/python/cpython/pull/160616
Use a managed dict for the _io types #161184https://github.com/python/cpython/issues/161184
Please reload this pagehttps://github.com/python/cpython/pull/161236
eendebakpthttps://github.com/eendebakpt
November 2, 2026 12:10https://github.com/python/cpython/pull/161236#commits-pushed-4a9f0fa
https://github.com/eendebakpt
https://github.com/claude
Use a managed dict for the _io typeshttps://github.com/python/cpython/pull/161236/commits/4a9f0fa85f7574084ff000e4ad636af0d875991a
4a9f0fahttps://github.com/python/cpython/pull/161236/commits/4a9f0fa85f7574084ff000e4ad636af0d875991a
https://github.com/eendebakpt
https://github.com/claude
Use a managed weakref list for the _io typeshttps://github.com/python/cpython/pull/161236/commits/899dcc9ccca970ba18355465a335e4b782db09a1
899dcc9https://github.com/python/cpython/pull/161236/commits/899dcc9ccca970ba18355465a335e4b782db09a1
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
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
Nov 3, 2026https://github.com/python/cpython/pull/161236#event-34996750617
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 3, 2026 https://github.com/python/cpython/pull/161236#ref-issue-6163656218
Use a managed dict for the _io types #161184 https://github.com/python/cpython/issues/161184
blurb-ithttps://github.com/apps/blurb-it
November 3, 2026 08:21https://github.com/python/cpython/pull/161236#commits-pushed-7e36ce3
https://github.com/apps/blurb-it
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/161236/commits/7e36ce3a28737b13eaef1a6032b6ae246f02b05c
7e36ce3https://github.com/python/cpython/pull/161236/commits/7e36ce3a28737b13eaef1a6032b6ae246f02b05c
https://github.com/eendebakpt
https://github.com/claude
Fix line endings of the NEWS entryhttps://github.com/python/cpython/pull/161236/commits/0d2c8f1d7d801c49f6c7ff9a41bf5f9425a3c246
0d2c8f1https://github.com/python/cpython/pull/161236/commits/0d2c8f1d7d801c49f6c7ff9a41bf5f9425a3c246
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Nov 3, 2026 https://github.com/python/cpython/pull/161236#pullrequestreview-5759378557
View reviewed changes https://github.com/python/cpython/pull/161236/files/0d2c8f1d7d801c49f6c7ff9a41bf5f9425a3c246
cmaloneyhttps://github.com/cmaloney
https://github.com/python/cpython/pull/161236#pullrequestreview-5759378557
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/161236
Modules/_io/bufferedio.chttps://github.com/python/cpython/pull/161236/files/0d2c8f1d7d801c49f6c7ff9a41bf5f9425a3c246#diff-893faf8dc50d99bfa374e52717f4a7f6a2dd0020fbaa9dfc2cc45464b731d36a
Please reload this pagehttps://github.com/python/cpython/pull/161236
Modules/_io/bytesio.chttps://github.com/python/cpython/pull/161236/files/0d2c8f1d7d801c49f6c7ff9a41bf5f9425a3c246#diff-fbdbc4e9c4c46bb4d0afb3927ea0ba919e62c1a79c390aa695a50fc317e48e09
Please reload this pagehttps://github.com/python/cpython/pull/161236
eendebakpthttps://github.com/eendebakpt
November 4, 2026 23:51https://github.com/python/cpython/pull/161236#commits-pushed-60955ab
https://github.com/eendebakpt
https://github.com/claude
Remove the now-empty member tables of the _io typeshttps://github.com/python/cpython/pull/161236/commits/60955ab89c00a3c8c1a584e89f3a964dcdfbce0f
60955abhttps://github.com/python/cpython/pull/161236/commits/60955ab89c00a3c8c1a584e89f3a964dcdfbce0f
https://github.com/eendebakpt
https://github.com/claude
Do not materialize an empty instance dict in BytesIO/StringIO.__getst…https://github.com/python/cpython/pull/161236/commits/97a77b7484be5e58fa14ed5cbd6c3863978ae5cd
97a77b7https://github.com/python/cpython/pull/161236/commits/97a77b7484be5e58fa14ed5cbd6c3863978ae5cd
https://github.com/eendebakpt
eendebakpthttps://github.com/eendebakpt
Nov 5, 2026https://github.com/python/cpython/pull/161236#issuecomment-6657898578
#161419https://github.com/python/cpython/issues/161419
Please reload this pagehttps://github.com/python/cpython/pull/161236
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Nov 5, 2026 https://github.com/python/cpython/pull/161236#pullrequestreview-5789672173
View reviewed changes https://github.com/python/cpython/pull/161236/files/a6bb0a48dc3590dcb68de27f2fe5d4e83bb7490c
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Nov 5, 2026https://github.com/python/cpython/pull/161236#event-35271582265
https://github.com/eendebakpt
Merge branch 'main' into io-managed-weakrefhttps://github.com/python/cpython/pull/161236/commits/a6bb0a48dc3590dcb68de27f2fe5d4e83bb7490c
a6bb0a4https://github.com/python/cpython/pull/161236/commits/a6bb0a48dc3590dcb68de27f2fe5d4e83bb7490c
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Nov 20, 2026 https://github.com/python/cpython/pull/161236#pullrequestreview-5991462621
View reviewed changes https://github.com/python/cpython/pull/161236/files/a6bb0a48dc3590dcb68de27f2fe5d4e83bb7490c
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
6f34060https://github.com/python/cpython/commit/6f3406076c589a1da85e675b1b9d2e8f142dec43
Nov 20, 2026https://github.com/python/cpython/pull/161236#event-36759890188
Please reload this pagehttps://github.com/python/cpython/pull/161236
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Nov 20, 2026https://github.com/python/cpython/pull/161236#event-36759896103
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Nov 20, 2026https://github.com/python/cpython/pull/161236#issuecomment-7037936204
6f34060https://github.com/python/cpython/commit/6f3406076c589a1da85e675b1b9d2e8f142dec43
the buildbot page in the devguidehttps://devguide.python.org/buildbots/
https://buildbot.python.org/#/builders/1366/builds/8609https://buildbot.python.org/#/builders/1366/builds/8609
6f34060https://github.com/python/cpython/commit/6f3406076c589a1da85e675b1b9d2e8f142dec43
https://buildbot.python.org/#/builders/1366/builds/8609https://buildbot.python.org/#/builders/1366/builds/8609
Please reload this pagehttps://github.com/python/cpython/pull/161236
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Nov 21, 2026https://github.com/python/cpython/pull/161236#issuecomment-7054841102
gh-162342https://github.com/python/cpython/issues/162342
Please reload this pagehttps://github.com/python/cpython/pull/161236
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
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%2F161236
https://github.com/cmaloney
cmaloney https://github.com/cmaloney
https://github.com/python/cpython/pull/161236/files/a6bb0a48dc3590dcb68de27f2fe5d4e83bb7490c
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
https://github.com/python/cpython/pull/161236/files/a6bb0a48dc3590dcb68de27f2fe5d4e83bb7490c
Please reload this pagehttps://github.com/python/cpython/pull/161236
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
Please reload this pagehttps://github.com/python/cpython/pull/161236
https://github.com/eendebakpt
https://github.com/bedevere-bot
https://github.com/cmaloney
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.