René's URL Explorer Experiment


Title: gh-158660: Add `PyListWriter` C API by vstinner · Pull Request #160127 · python/cpython · GitHub

Open Graph Title: gh-158660: Add `PyListWriter` C API by vstinner · Pull Request #160127 · python/cpython

X Title: gh-158660: Add `PyListWriter` C API by vstinner · Pull Request #160127 · python/cpython

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

Open Graph Description: Issue: PyList_SetItem is ~2.7x slower per item on the free-threaded build #158660

X Description: Issue: PyList_SetItem is ~2.7x slower per item on the free-threaded build #158660

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

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:77eb65b5-e9f6-a7ba-6ac2-ee58338346a7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id86D4:3CBB3E:38DB2BD:4873BD2:6B023EA4
html-safe-noncea8f718ea00456371e0595eb797e3a8a1e03b275af5d1afe0331bfd8eaf05a1b3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkQ0OjNDQkIzRTozOERCMkJEOjQ4NzNCRDI6NkIwMjNFQTQiLCJ2aXNpdG9yX2lkIjoiODkwODc0OTkyMTY4ODEwODcwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac50c9beaaf4772ac2d252a764b8693b97aa85c943b258a7a6cefe9f44b54b3b8b
hovercard-subject-tagpull_request:4959047225
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/160127/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/eb7e60840cfc2450ddd191f50f24fe34daf7b83671b8c29436fa200287bb928b/python/cpython/pull/160127
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eb7e60840cfc2450ddd191f50f24fe34daf7b83671b8c29436fa200287bb928b/python/cpython/pull/160127
og:image:altIssue: PyList_SetItem is ~2.7x slower per item on the free-threaded build #158660
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevstinner
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/160127#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F160127
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%2F160127
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/160127
Reloadhttps://github.com/python/cpython/pull/160127
Reloadhttps://github.com/python/cpython/pull/160127
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
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:list_writerhttps://github.com/vstinner/cpython/tree/list_writer
Conversationhttps://github.com/python/cpython/pull/160127
Commits21 (21)https://github.com/python/cpython/pull/160127/commits
Checkshttps://github.com/python/cpython/pull/160127/checks
Files changedhttps://github.com/python/cpython/pull/160127/files
gh-158660: Add PyListWriter C APIhttps://github.com/python/cpython/pull/160127#top
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:list_writerhttps://github.com/vstinner/cpython/tree/list_writer
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 21, 2026https://github.com/python/cpython/pull/160127#issue-5969354384
Please reload this pagehttps://github.com/python/cpython/pull/160127
PyList_SetItem is ~2.7x slower per item on the free-threaded build #158660https://github.com/python/cpython/issues/158660
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/vstinner
pythongh-158660https://github.com/python/cpython/issues/158660
: Addhttps://github.com/python/cpython/pull/160127/commits/79a2ae5c8972cbe6b673d492ff2ed66c90d62a09
PyListWriterhttps://github.com/python/cpython/pull/160127/commits/79a2ae5c8972cbe6b673d492ff2ed66c90d62a09
C APIhttps://github.com/python/cpython/pull/160127/commits/79a2ae5c8972cbe6b673d492ff2ed66c90d62a09
79a2ae5https://github.com/python/cpython/pull/160127/commits/79a2ae5c8972cbe6b673d492ff2ed66c90d62a09
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 21, 2026 https://github.com/python/cpython/pull/160127#ref-issue-5691213452
PyList_SetItem is ~2.7x slower per item on the free-threaded build #158660 https://github.com/python/cpython/issues/158660
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 21, 2026https://github.com/python/cpython/pull/160127#issuecomment-6327680025
Please reload this pagehttps://github.com/python/cpython/pull/160127
vstinnerhttps://github.com/vstinner
October 21, 2026 17:13https://github.com/python/cpython/pull/160127#commits-pushed-d8be30d
https://github.com/vstinner
Inline PyList_SET_ITEM()https://github.com/python/cpython/pull/160127/commits/d8be30db3cfeb0640c05d8d377b32e178ef57c05
d8be30dhttps://github.com/python/cpython/pull/160127/commits/d8be30db3cfeb0640c05d8d377b32e178ef57c05
https://github.com/vstinner
Remove redundant test_list_writer()https://github.com/python/cpython/pull/160127/commits/398c4b38844d5a721484c52729f0f90cefb88339
398c4b3https://github.com/python/cpython/pull/160127/commits/398c4b38844d5a721484c52729f0f90cefb88339
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 21, 2026https://github.com/python/cpython/pull/160127#issuecomment-6327905876
the PyLongWriter APIhttps://docs.python.org/dev/c-api/long.html#pylongwriter-api
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/apps/read-the-docs-community
read-the-docs-communityhttps://github.com/apps/read-the-docs-community
Oct 21, 2026https://github.com/python/cpython/pull/160127#issuecomment-6327996274
Please reload this pagehttps://github.com/python/cpython/pull/160127
cpython-previewshttps://app.readthedocs.org/projects/cpython-previews/
#35641204https://app.readthedocs.org/projects/cpython-previews/builds/35641204/
04c4d30https://github.com/python/cpython/commit/04c4d30ba83c0367ee5d0b48c9aea730cd786f25
mainhttps://cpython-previews.readthedocs.io/en/main/
aed4ad8https://github.com/python/cpython/commit/aed4ad8c4397595df7d822749556681a8a86208d
  🔍 Preview build   https://cpython-previews--160127.org.readthedocs.build/en/160127/
glossary.htmlhttps://cpython-previews--160127.org.readthedocs.build/en/160127/glossary.html
license.htmlhttps://cpython-previews--160127.org.readthedocs.build/en/160127/license.html
builtins/exceptions.htmlhttps://cpython-previews--160127.org.readthedocs.build/en/160127/builtins/exceptions.html
builtins/functions.htmlhttps://cpython-previews--160127.org.readthedocs.build/en/160127/builtins/functions.html
builtins/stdtypes.htmlhttps://cpython-previews--160127.org.readthedocs.build/en/160127/builtins/stdtypes.html
c-api/bool.htmlhttps://cpython-previews--160127.org.readthedocs.build/en/160127/c-api/bool.html
c-api/buffer.htmlhttps://cpython-previews--160127.org.readthedocs.build/en/160127/c-api/buffer.html
c-api/bytes.htmlhttps://cpython-previews--160127.org.readthedocs.build/en/160127/c-api/bytes.html
c-api/code.htmlhttps://cpython-previews--160127.org.readthedocs.build/en/160127/c-api/code.html
c-api/codec.htmlhttps://cpython-previews--160127.org.readthedocs.build/en/160127/c-api/codec.html
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/vstinner
Move _PyObject_GC_TRACK() to PyListWriter_Finish()https://github.com/python/cpython/pull/160127/commits/3df6e01c30946b1f3755c871cb47a12f8917be8f
3df6e01https://github.com/python/cpython/pull/160127/commits/3df6e01c30946b1f3755c871cb47a12f8917be8f
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 21, 2026https://github.com/python/cpython/pull/160127#issuecomment-6328127998
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 22, 2026https://github.com/python/cpython/pull/160127#issuecomment-6329435447
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/vstinner
Merge branch 'main' into list_writerhttps://github.com/python/cpython/pull/160127/commits/b0edd12fc5300211fe4ea3749d1754d532dea947
b0edd12https://github.com/python/cpython/pull/160127/commits/b0edd12fc5300211fe4ea3749d1754d532dea947
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 22, 2026https://github.com/python/cpython/pull/160127#issuecomment-6330076200
Please reload this pagehttps://github.com/python/cpython/pull/160127
#158660https://github.com/python/cpython/issues/158660
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 22, 2026https://github.com/python/cpython/pull/160127#issuecomment-6332473745
Please reload this pagehttps://github.com/python/cpython/pull/160127
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/pitrou
pitrouhttps://github.com/pitrou
Oct 22, 2026 https://github.com/python/cpython/pull/160127#pullrequestreview-5610914275
View reviewed changes https://github.com/python/cpython/pull/160127/files/b0edd12fc5300211fe4ea3749d1754d532dea947
Doc/c-api/list.rsthttps://github.com/python/cpython/pull/160127/files/b0edd12fc5300211fe4ea3749d1754d532dea947#diff-a44f87cc306edad040d15abb116fe36178591a284bef39abae9f66d6e71cf03d
Please reload this pagehttps://github.com/python/cpython/pull/160127
Doc/c-api/list.rsthttps://github.com/python/cpython/pull/160127/files/b0edd12fc5300211fe4ea3749d1754d532dea947#diff-a44f87cc306edad040d15abb116fe36178591a284bef39abae9f66d6e71cf03d
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/pitrou
pitrouhttps://github.com/pitrou
Oct 22, 2026https://github.com/python/cpython/pull/160127#issuecomment-6335766841
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/vstinner
Clarify PyListWriter_ExtendArray() dochttps://github.com/python/cpython/pull/160127/commits/f9d714500a96208212f37f85ca803ccda5b74a61
f9d7145https://github.com/python/cpython/pull/160127/commits/f9d714500a96208212f37f85ca803ccda5b74a61
https://github.com/ngoldbaum
ngoldbaumhttps://github.com/ngoldbaum
Oct 22, 2026https://github.com/python/cpython/pull/160127#issuecomment-6351435643
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://private-user-images.githubusercontent.com/3126246/682048006-0e751252-68cb-45d7-b1fa-f2500cd5df2e.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUzMDk1MjEsIm5iZiI6MTc5NTMwOTIyMSwicGF0aCI6Ii8zMTI2MjQ2LzY4MjA0ODAwNi0wZTc1MTI1Mi02OGNiLTQ1ZDctYjFmYS1mMjUwMGNkNWRmMmUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjJUMDEwMDIxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODQxZDgxYTkyYjFhM2Y0NTNiMGQ0M2RkMGE3YTM1NjU3YTRiMGU3OTdlMGQxYWZkZWFhZDQ5NTE1MDhkY2RmOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.f55dcMRTk5s8d6vpuU7piNKdpwqO2nUqYXJbezwDKKU
Please reload this pagehttps://github.com/python/cpython/pull/160127
vstinnerhttps://github.com/vstinner
October 22, 2026 16:35https://github.com/python/cpython/pull/160127#commits-pushed-d096f46
https://github.com/vstinner
Use list_new_prealloc() in PyListWriter_Create()https://github.com/python/cpython/pull/160127/commits/d096f46540645aed0c13b52f0e1aa8ec8c4ecdf1
d096f46https://github.com/python/cpython/pull/160127/commits/d096f46540645aed0c13b52f0e1aa8ec8c4ecdf1
https://github.com/vstinner
Update PyListWriter_Create() commenthttps://github.com/python/cpython/pull/160127/commits/a8c24ee4203a0d9efb22bdaed823d5802f21b731
a8c24eehttps://github.com/python/cpython/pull/160127/commits/a8c24ee4203a0d9efb22bdaed823d5802f21b731
https://github.com/vstinner
Add PyListWriter_ExtendArraySteal() functionhttps://github.com/python/cpython/pull/160127/commits/31e5f1b8fb273fa9942cba538c03feadf93d36bb
31e5f1bhttps://github.com/python/cpython/pull/160127/commits/31e5f1b8fb273fa9942cba538c03feadf93d36bb
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 22, 2026https://github.com/python/cpython/pull/160127#issuecomment-6352324375
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
October 22, 2026 22:04https://github.com/python/cpython/pull/160127#event-33997961996
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
AA-Turnerhttps://github.com/AA-Turner
ZeroIntensityhttps://github.com/ZeroIntensity
code ownershttps://github.com/python/cpython/blob/c6661bdc7d6042003fdb932f5be172d89d1e4a42/.github/CODEOWNERS#L116
October 22, 2026 22:05https://github.com/python/cpython/pull/160127#event-33997962968
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
Oct 22, 2026https://github.com/python/cpython/pull/160127#event-33997966012
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 22, 2026https://github.com/python/cpython/pull/160127#issuecomment-6352328828
Please reload this pagehttps://github.com/python/cpython/pull/160127
vstinnerhttps://github.com/vstinner
October 22, 2026 22:15https://github.com/python/cpython/pull/160127#commits-pushed-db8eb51
https://github.com/vstinner
Fix doc: use :term: not :ref:https://github.com/python/cpython/pull/160127/commits/db8eb510bb8cfc9405671e9d0c1e400c0c909ac5
db8eb51https://github.com/python/cpython/pull/160127/commits/db8eb510bb8cfc9405671e9d0c1e400c0c909ac5
https://github.com/vstinner
Avoid undefined behavior: memset() with size=0https://github.com/python/cpython/pull/160127/commits/da86200cc0952f9bdb19d6e4fd7ba2936e1c9568
da86200https://github.com/python/cpython/pull/160127/commits/da86200cc0952f9bdb19d6e4fd7ba2936e1c9568
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 23, 2026https://github.com/python/cpython/pull/160127#issuecomment-6358160145
@encukouhttps://github.com/encukou
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/encukou
encukouhttps://github.com/encukou
Oct 23, 2026https://github.com/python/cpython/pull/160127#issuecomment-6369799441
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 24, 2026https://github.com/python/cpython/pull/160127#issuecomment-6378699946
#73044 (comment)https://github.com/python/cpython/issues/73044#issuecomment-1093733589
7bfb42dhttps://github.com/python/cpython/commit/7bfb42d5b7721ca26e33050d025fec5c43c00058
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 26, 2026 https://github.com/python/cpython/pull/160127#ref-issue-6045274277
Add PyListWriter C API to the limited C API capi-workgroup/decisions#118 https://github.com/capi-workgroup/decisions/issues/118
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 26, 2026https://github.com/python/cpython/pull/160127#issuecomment-6423472577
capi-workgroup/decisions#118https://github.com/capi-workgroup/decisions/issues/118
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 27, 2026https://github.com/python/cpython/pull/160127#issuecomment-6432898936
Please reload this pagehttps://github.com/python/cpython/pull/160127
bench.patchhttps://github.com/user-attachments/files/33996358/bench.patch
bench.pyhttps://github.com/user-attachments/files/33996359/bench.py
bench.shhttps://github.com/user-attachments/files/33996364/bench.sh
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/vstinner
Finish() shrinks the listhttps://github.com/python/cpython/pull/160127/commits/748ac2477c7128547cb080c319abb2d1fb375d1f
748ac24https://github.com/python/cpython/pull/160127/commits/748ac2477c7128547cb080c319abb2d1fb375d1f
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 29, 2026https://github.com/python/cpython/pull/160127#issuecomment-6485618648
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/vstinner
On error, Extend() restores the writer to its previous statehttps://github.com/python/cpython/pull/160127/commits/9efaf876f162f4466b4c4b18d8453256134459c7
9efaf87https://github.com/python/cpython/pull/160127/commits/9efaf876f162f4466b4c4b18d8453256134459c7
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 3, 2026https://github.com/python/cpython/pull/160127#issuecomment-6593672852
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 3, 2026https://github.com/python/cpython/pull/160127#issuecomment-6597402482
Please reload this pagehttps://github.com/python/cpython/pull/160127
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/encukou
encukouhttps://github.com/encukou
Nov 3, 2026https://github.com/python/cpython/pull/160127#issuecomment-6598232164
@vstinnerhttps://github.com/vstinner
Please reload this pagehttps://github.com/python/cpython/pull/160127
vstinnerhttps://github.com/vstinner
November 3, 2026 09:53https://github.com/python/cpython/pull/160127#commits-pushed-8404760
https://github.com/vstinner
Add PyListWriter_FromFormat()https://github.com/python/cpython/pull/160127/commits/8404760ed8617f8513c33217459b472df65b8d1e
8404760https://github.com/python/cpython/pull/160127/commits/8404760ed8617f8513c33217459b472df65b8d1e
https://github.com/vstinner
Fix undefined behavior in listwriter_extend_array() with nitem=0https://github.com/python/cpython/pull/160127/commits/9313299aa97517b6718e29319232b7db3e5722a1
9313299https://github.com/python/cpython/pull/160127/commits/9313299aa97517b6718e29319232b7db3e5722a1
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
markshannonhttps://github.com/markshannon
code ownershttps://github.com/python/cpython/blob/e9c9a339035c9b96a5ebca8337a13140725ecf2a/.github/CODEOWNERS#L261
November 3, 2026 08:58https://github.com/python/cpython/pull/160127#event-34999856131
vstinnerhttps://github.com/vstinner
November 3, 2026 10:22https://github.com/python/cpython/pull/160127#commits-pushed-8c7ec58
https://github.com/vstinner
Inline listwriter_extend_array()https://github.com/python/cpython/pull/160127/commits/8c7ec583a7f19f97f0e7b8dd64c1697e214dbfeb
8c7ec58https://github.com/python/cpython/pull/160127/commits/8c7ec583a7f19f97f0e7b8dd64c1697e214dbfeb
https://github.com/vstinner
Add PyListWriter_FromBuffer() functionhttps://github.com/python/cpython/pull/160127/commits/e9dbc5e2f83e2fe1bc9eaa208633cb610815cc2e
e9dbc5ehttps://github.com/python/cpython/pull/160127/commits/e9dbc5e2f83e2fe1bc9eaa208633cb610815cc2e
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 3, 2026https://github.com/python/cpython/pull/160127#issuecomment-6602880935
Please reload this pagehttps://github.com/python/cpython/pull/160127
vstinnerhttps://github.com/vstinner
November 3, 2026 12:43https://github.com/python/cpython/pull/160127#commits-pushed-995f2d5
https://github.com/vstinner
Fix dochttps://github.com/python/cpython/pull/160127/commits/995f2d5bce1babf145bb7f7828d6ef4d5b38514e
995f2d5https://github.com/python/cpython/pull/160127/commits/995f2d5bce1babf145bb7f7828d6ef4d5b38514e
https://github.com/vstinner
Optimize PyListWriter_FromBuffer()https://github.com/python/cpython/pull/160127/commits/c808cb7bf756238ea3118e8c80ef0f9a0ab5e2de
c808cb7https://github.com/python/cpython/pull/160127/commits/c808cb7bf756238ea3118e8c80ef0f9a0ab5e2de
https://github.com/vstinner
Resize the list once in PyListWriter_FromBuffer()https://github.com/python/cpython/pull/160127/commits/8e07fa1fa5038ffc0d995e1bd803858449d0e4a2
8e07fa1https://github.com/python/cpython/pull/160127/commits/8e07fa1fa5038ffc0d995e1bd803858449d0e4a2
https://github.com/vstinner
FromBuffer() tests compare to mview.tolist() and array.tolist()https://github.com/python/cpython/pull/160127/commits/04c4d30ba83c0367ee5d0b48c9aea730cd786f25
04c4d30https://github.com/python/cpython/pull/160127/commits/04c4d30ba83c0367ee5d0b48c9aea730cd786f25
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 19, 2026https://github.com/python/cpython/pull/160127#issuecomment-7014110989
Please reload this pagehttps://github.com/python/cpython/pull/160127
bench.patchhttps://github.com/user-attachments/files/35095622/bench.patch
bench.pyhttps://github.com/user-attachments/files/35095624/bench.py
bench.shhttps://github.com/user-attachments/files/35095629/bench.sh
Please reload this pagehttps://github.com/python/cpython/pull/160127
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%2F160127
https://github.com/pitrou
pitrou https://github.com/pitrou
https://github.com/python/cpython/pull/160127/files/b0edd12fc5300211fe4ea3749d1754d532dea947
https://github.com/AA-Turner
AA-Turner https://github.com/AA-Turner
https://github.com/ZeroIntensity
ZeroIntensity https://github.com/ZeroIntensity
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/markshannon
markshannon https://github.com/markshannon
Please reload this pagehttps://github.com/python/cpython/pull/160127
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Please reload this pagehttps://github.com/python/cpython/pull/160127
https://github.com/vstinner
https://github.com/pitrou
https://github.com/ngoldbaum
https://github.com/encukou
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.