René's URL Explorer Experiment


Title: `PyList_SetItem` is ~2.7x slower per item on the free-threaded build · Issue #158660 · python/cpython · GitHub

Open Graph Title: `PyList_SetItem` is ~2.7x slower per item on the free-threaded build · Issue #158660 · python/cpython

X Title: `PyList_SetItem` is ~2.7x slower per item on the free-threaded build · Issue #158660 · python/cpython

Description: Bug report Extensions built for the stable ABI can't use PyList_SET_ITEM, so they fill new lists with PyList_SetItem. On the free-threaded build each call costs about 2.7x what it does on the GIL-enabled build, while PyTuple_SetItem cost...

Open Graph Description: Bug report Extensions built for the stable ABI can't use PyList_SET_ITEM, so they fill new lists with PyList_SetItem. On the free-threaded build each call costs about 2.7x what it does on the GIL-e...

X Description: Bug report Extensions built for the stable ABI can't use PyList_SET_ITEM, so they fill new lists with PyList_SetItem. On the free-threaded build each call costs about 2.7x what it does on the G...

Opengraph URL: https://github.com/python/cpython/issues/158660

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`PyList_SetItem` is ~2.7x slower per item on the free-threaded build","articleBody":"### Bug report\n\nExtensions built for the stable ABI can't use `PyList_SET_ITEM`, so they fill new lists with `PyList_SetItem`. On the free-threaded build each call costs about 2.7x what it does on the GIL-enabled build, while `PyTuple_SetItem` costs about the same on both builds. Converting native sequences (pointer arrays, vectors) to lists is a hot path for bindings, so this becomes a visible slowdown when a project switches from abi3 to abi3t wheels. For example, in tokenizers a getter that returns three lists runs about 2x slower (see https://github.com/huggingface/tokenizers/issues/2488#issuecomment-5970712841).\n\n### Reproducer\n\n`fill.c`:\n\n```c\n#include \u003cPython.h>\n\nstatic PyObject *fill_list(PyObject *m, PyObject *arg) {\n    Py_ssize_t n = PyLong_AsSsize_t(arg);\n    PyObject *list = PyList_New(n);\n    for (Py_ssize_t i = 0; i \u003c n; i++)\n        PyList_SetItem(list, i, Py_NewRef(Py_None));\n    return list;\n}\n\nstatic PyObject *fill_tuple(PyObject *m, PyObject *arg) {\n    Py_ssize_t n = PyLong_AsSsize_t(arg);\n    PyObject *tuple = PyTuple_New(n);\n    for (Py_ssize_t i = 0; i \u003c n; i++)\n        PyTuple_SetItem(tuple, i, Py_NewRef(Py_None));\n    return tuple;\n}\n\nstatic PyMethodDef methods[] = {\n    {\"fill_list\", fill_list, METH_O, NULL},\n    {\"fill_tuple\", fill_tuple, METH_O, NULL},\n    {NULL},\n};\nPyABIInfo_VAR(abi_info);\nstatic PySlot slots[] = {\n    PySlot_DATA(Py_mod_abi, &abi_info),\n    PySlot_DATA(Py_mod_name, \"fill\"),\n    PySlot_STATIC_DATA(Py_mod_methods, methods),\n    PySlot_DATA(Py_mod_gil, Py_MOD_GIL_NOT_USED),\n    PySlot_END,\n};\nPyMODEXPORT_FUNC PyModExport_fill(void) { return slots; }\n```\n\n`bench.py`:\n\n```python\nimport sys, timeit, fill\n\nn = 1000\nprint(sys.version.split()[0], \"free-threaded\" if not sys._is_gil_enabled() else \"GIL\", fill.__file__.rsplit(\"/\", 1)[-1])\nfor name in (\"fill_list\", \"fill_tuple\"):\n    f = getattr(fill, name)\n    t = min(timeit.repeat(lambda: f(n), number=2000, repeat=9)) / 2000\n    print(f\"  {name}: {t / n * 1e9:.1f} ns/item\")\n```\n\nBuild one copy for abi3 and one for abi3t, then run them:\n\n```sh\nmkdir abi3 abi3t\ngcc -O2 -shared -fPIC -DPy_LIMITED_API=0x030f0000 -I\"$(python3.15 -c 'import sysconfig; print(sysconfig.get_path(\"include\"))')\" fill.c -o abi3/fill.abi3.so\ngcc -O2 -shared -fPIC -DPy_TARGET_ABI3T=0x030f0000 -I\"$(python3.15t -c 'import sysconfig; print(sysconfig.get_path(\"include\"))')\" fill.c -o abi3t/fill.abi3t.so\nPYTHONPATH=abi3 python3.15 bench.py\nPYTHONPATH=abi3t python3.15 bench.py\nPYTHONPATH=abi3t python3.15t bench.py\n```\n\n### Results\n\n3.15.0rc2, x86-64 Linux, gcc -O2:\n\n```\n3.15.0rc2 GIL fill.abi3.so\n  fill_list: 7.2 ns/item\n  fill_tuple: 7.6 ns/item\n3.15.0rc2 GIL fill.abi3t.so\n  fill_list: 6.6 ns/item\n  fill_tuple: 7.5 ns/item\n3.15.0rc2 free-threaded fill.abi3t.so\n  fill_list: 19.8 ns/item\n  fill_tuple: 9.6 ns/item\n```\n\n\n\n### CPython versions tested on:\n\n3.15\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-160127\n* gh-160156\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/ngoldbaum","@type":"Person","name":"ngoldbaum"},"datePublished":"2026-10-03T15:59:25Z","url":"https://github.com/python/cpython/issues/158660"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c5af9981-495a-85b5-2523-5e06cefce69a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA89E:17FB7:3C34DFB:4C38460:6B023AA1
html-safe-nonce9b3a42b3d21bb1f5fdeca010daf9a9033fbef5367d5aa5eab3e2ff8d88c5df79
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODlFOjE3RkI3OjNDMzRERkI6NEMzODQ2MDo2QjAyM0FBMSIsInZpc2l0b3JfaWQiOiI0MzgzMjIxMjQ3ODY2MTkwNDk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6409af08f2486321d23a3de6b424341fa085a01dc86506028ae958c019822b98
hovercard-subject-tagissue:5691213452
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/158660/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e69c4ba02502fa1676190f6047a9b7ec073ac2fc51e9d77ada61e1bf54113faa/python/cpython/issues/158660
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e69c4ba02502fa1676190f6047a9b7ec073ac2fc51e9d77ada61e1bf54113faa/python/cpython/issues/158660
og:image:altBug report Extensions built for the stable ABI can't use PyList_SET_ITEM, so they fill new lists with PyList_SetItem. On the free-threaded build each call costs about 2.7x what it does on the GIL-e...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamengoldbaum
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
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-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/158660#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F158660
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%2Fissues%2F158660
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/158660
Reloadhttps://github.com/python/cpython/issues/158660
Reloadhttps://github.com/python/cpython/issues/158660
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/158660
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/158660
PyList_SetItem is ~2.7x slower per item on the free-threaded buildhttps://github.com/python/cpython/issues/158660#top
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
topic-free-threadinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-free-threading%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/ngoldbaum
ngoldbaumhttps://github.com/ngoldbaum
on Oct 3, 2026https://github.com/python/cpython/issues/158660#issue-5691213452
huggingface/tokenizers#2488 (comment)https://github.com/huggingface/tokenizers/issues/2488#issuecomment-5970712841
gh-158660: Add PyListWriter C API #160127https://github.com/python/cpython/pull/160127
gh-158660: Avoid locking for new lists with preallocated space #160156https://github.com/python/cpython/pull/160156
ngoldbaumhttps://github.com/ngoldbaum
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
topic-free-threadinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-free-threading%22
on Oct 3, 2026https://github.com/python/cpython/issues/158660#event-32403887359
https://github.com/ngoldbaum
ngoldbaumhttps://github.com/ngoldbaum
on Oct 3, 2026https://github.com/python/cpython/issues/158660#issuecomment-5970905387
https://github.com/ngoldbaum
ngoldbaumhttps://github.com/ngoldbaum
on Oct 3, 2026https://github.com/python/cpython/issues/158660#issuecomment-5971723882
@kumaraditya303https://github.com/kumaraditya303
picnixzhttps://github.com/picnixz
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
on Oct 3, 2026https://github.com/python/cpython/issues/158660#event-32407675266
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Oct 3, 2026https://github.com/python/cpython/issues/158660#issuecomment-5972034739
@vstinnerhttps://github.com/vstinner
@encukouhttps://github.com/encukou
https://github.com/ngoldbaum
ngoldbaumhttps://github.com/ngoldbaum
on Oct 3, 2026https://github.com/python/cpython/issues/158660#issuecomment-5972362652
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Oct 3, 2026https://github.com/python/cpython/issues/158660#issuecomment-5972470074
https://github.com/ngoldbaum
ngoldbaumhttps://github.com/ngoldbaum
on Oct 3, 2026https://github.com/python/cpython/issues/158660#issuecomment-5972976023
cpython/Python/critical_section.chttps://github.com/python/cpython/blob/81c50e903ef1beaa91b4cdc44712ea3e16853f9e/Python/critical_section.c#L24-L45
81c50e9https://github.com/python/cpython/commit/81c50e903ef1beaa91b4cdc44712ea3e16853f9e
https://github.com/python/cpython/compare/main...ngoldbaum:cpython:recursive-cs-extra-check?expand=1https://github.com/python/cpython/compare/main...ngoldbaum:cpython:recursive-cs-extra-check?expand=1
PyO3/pyo3#6478https://github.com/PyO3/pyo3/pull/6478
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Oct 3, 2026https://github.com/python/cpython/issues/158660#issuecomment-5974676851
@ngoldbaumhttps://github.com/ngoldbaum
https://github.com/ngoldbaum
ngoldbaumhttps://github.com/ngoldbaum
on Oct 4, 2026https://github.com/python/cpython/issues/158660#issuecomment-5977415030
https://github.com/ngoldbaum
ngoldbaumhttps://github.com/ngoldbaum
on Oct 16, 2026https://github.com/python/cpython/issues/158660#issuecomment-6222360872
https://github.com/ngoldbaum
ngoldbaumhttps://github.com/ngoldbaum
on Oct 17, 2026https://github.com/python/cpython/issues/158660#issuecomment-6238842544
PyO3/pyo3#6532https://github.com/PyO3/pyo3/pull/6532
@picnixzhttps://github.com/picnixz
https://private-user-images.githubusercontent.com/3126246/676840082-51e0ea5f-fb24-4631-ac48-0858992215d9.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUzMDg0OTQsIm5iZiI6MTc5NTMwODE5NCwicGF0aCI6Ii8zMTI2MjQ2LzY3Njg0MDA4Mi01MWUwZWE1Zi1mYjI0LTQ2MzEtYWM0OC0wODU4OTkyMjE1ZDkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjJUMDA0MzE0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Yjc3MWQzZWJhMTUwYjhiYzZkODA4ZTg1Yzc1ODc0MTA4YTczNzA0MGIxNjA2Nzk2MGU5ZWQ5MzRkMzA1YmNjZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.R64L_VGaKi0CFsLgVgHnnd2fwt3s5H6sDmHaAMXwH1U
https://private-user-images.githubusercontent.com/3126246/676841268-bcb47b37-ca70-445d-a69e-622ad01ea648.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUzMDg0OTQsIm5iZiI6MTc5NTMwODE5NCwicGF0aCI6Ii8zMTI2MjQ2LzY3Njg0MTI2OC1iY2I0N2IzNy1jYTcwLTQ0NWQtYTY5ZS02MjJhZDAxZWE2NDgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjJUMDA0MzE0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjllYWVlMjc1NzcyZjk0Y2JmMDQyY2U0OTZiZjU5OTZhOGYwMTczMTk3MWJjZGM4ZjlmOTg1MzljMDhiNzE3MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.TqbkyABcmzaFNVDYWKh0VDgUwOsjnmdm5a0x0wLfm5w
a git repositoryhttps://github.com/ngoldbaum/listdemo
minimal examplehttps://github.com/ngoldbaum/listdemo/tree/main/minimal
https://github.com/ngoldbaum
ngoldbaumhttps://github.com/ngoldbaum
on Oct 17, 2026https://github.com/python/cpython/issues/158660#issuecomment-6238908674
kevinprimeraquecreo-stackhttps://github.com/kevinprimeraquecreo-stack
Project_VKhttps://github.com/users/kevinprimeraquecreo-stack/projects/1
on Oct 18, 2026https://github.com/python/cpython/issues/158660#event-33592140686
github-project-automationhttps://github.com/apps/github-project-automation
Project_VKhttps://github.com/users/kevinprimeraquecreo-stack/projects/1
on Oct 18, 2026https://github.com/python/cpython/issues/158660
kevinprimeraquecreo-stackhttps://github.com/kevinprimeraquecreo-stack
Project_VKhttps://github.com/users/kevinprimeraquecreo-stack/projects/1
on Oct 18, 2026https://github.com/python/cpython/issues/158660#event-33592176453
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Oct 20, 2026https://github.com/python/cpython/issues/158660#issuecomment-6302869113
https://docs.python.org/dev/c-api/tuple.html#c.PyTuple_FromArrayhttps://docs.python.org/dev/c-api/tuple.html#c.PyTuple_FromArray
https://github.com/ngoldbaum
ngoldbaumhttps://github.com/ngoldbaum
on Oct 20, 2026https://github.com/python/cpython/issues/158660#issuecomment-6303651631
https://github.com/pitrou
pitrouhttps://github.com/pitrou
on Oct 21, 2026https://github.com/python/cpython/issues/158660#issuecomment-6311787297
vstinnerhttps://github.com/vstinner
on Oct 21, 2026https://github.com/python/cpython/issues/158660#event-33892973816
pythongh-158660: Add PyListWriter C APIhttps://github.com/vstinner/cpython/commit/62b1095e76e47e1b92a616c2561d6370211815dc
pythongh-158660https://github.com/python/cpython/issues/158660
62b1095https://github.com/vstinner/cpython/commit/62b1095e76e47e1b92a616c2561d6370211815dc
pythongh-158660: Add `PyListWriter` C APIhttps://github.com/vstinner/cpython/commit/79a2ae5c8972cbe6b673d492ff2ed66c90d62a09
pythongh-158660https://github.com/python/cpython/issues/158660
79a2ae5https://github.com/vstinner/cpython/commit/79a2ae5c8972cbe6b673d492ff2ed66c90d62a09
https://github.com/corona10
corona10https://github.com/corona10
on Oct 21, 2026https://github.com/python/cpython/issues/158660#issuecomment-6327851341
https://peps.python.org/pep-0839/https://peps.python.org/pep-0839/
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Oct 21, 2026https://github.com/python/cpython/issues/158660#issuecomment-6328197602
#160127https://github.com/python/cpython/pull/160127
vstinnerhttps://github.com/vstinner
on Oct 21, 2026https://github.com/python/cpython/issues/158660#event-33899859185
pythongh-158660: Add `PyFrozenSetWriter` C APIhttps://github.com/vstinner/cpython/commit/415577f7416fe689047dfc4f3e793d0a0a0d279f
pythongh-158660https://github.com/python/cpython/issues/158660
415577fhttps://github.com/vstinner/cpython/commit/415577f7416fe689047dfc4f3e793d0a0a0d279f
pythongh-158660: Add `PyFrozenSetWriter` C APIhttps://github.com/vstinner/cpython/commit/dd642299435a04562aa731284db3e45d5f81aeb6
pythongh-158660https://github.com/python/cpython/issues/158660
dd64229https://github.com/vstinner/cpython/commit/dd642299435a04562aa731284db3e45d5f81aeb6
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Oct 22, 2026https://github.com/python/cpython/issues/158660#issuecomment-6332697543
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Oct 22, 2026https://github.com/python/cpython/issues/158660#issuecomment-6333463556
#160127https://github.com/python/cpython/pull/160127
PyBytesWriter_Create()https://docs.python.org/dev/c-api/bytes.html#c.PyBytesWriter_Create
PyLongWriter_Create()https://docs.python.org/dev/c-api/long.html#c.PyLongWriter_Create
https://github.com/espressolee
espressoleehttps://github.com/espressolee
on Oct 25, 2026https://github.com/python/cpython/issues/158660#issuecomment-6391637307
gh-158660: Avoid locking for new lists with preallocated space #160156https://github.com/python/cpython/pull/160156
gh-158660: Add PyListWriter C API #160127https://github.com/python/cpython/pull/160127
aff7a2ehttps://github.com/python/cpython/commit/aff7a2e23bd6ed68fa15c1ceda94a2fdd7f8cf7f
gh-158660: Add PyListWriter C API #160127https://github.com/python/cpython/pull/160127
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/158660
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/158660
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
topic-free-threadinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-free-threading%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
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.