Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.4k
(2.4k)
Actions
Projects
Security and quality
Insights
More
items
gh-158660: Add
PyListBuilder
C API
- #160127
#160127
Open
vstinner
wants to merge 40 commits into
python:main
python/cpython:main
from
vstinner:list_writer
vstinner/cpython:list_writer
Copy head branch name
Conversation
Commits
40
(40)
Checks
Files changed
Open
gh-158660: Add
PyListBuilder
C API
#160127
vstinner
wants to merge 40 commits into
python:main
python/cpython:main
from
vstinner:list_writer
vstinner/cpython:list_writer
Copy head branch name
Commits
Commits on Oct 21, 2026
gh-158660: Add `PyListWriter` C API
vstinner
committed
79a2ae5
View commit details
Copy full SHA for 79a2ae5
Browse repository at this point
Inline PyList_SET_ITEM()
vstinner
committed
d8be30d
View commit details
Copy full SHA for d8be30d
Browse repository at this point
Remove redundant test_list_writer()
vstinner
committed
398c4b3
View commit details
Copy full SHA for 398c4b3
Browse repository at this point
Move _PyObject_GC_TRACK() to PyListWriter_Finish()
vstinner
committed
3df6e01
View commit details
Copy full SHA for 3df6e01
Browse repository at this point
Commits on Oct 22, 2026
Merge branch 'main' into list_writer
vstinner
authored
b0edd12
View commit details
Copy full SHA for b0edd12
Browse repository at this point
Clarify PyListWriter_ExtendArray() doc
vstinner
committed
f9d7145
View commit details
Copy full SHA for f9d7145
Browse repository at this point
Use list_new_prealloc() in PyListWriter_Create()
Show description for d096f46
vstinner
committed
d096f46
View commit details
Copy full SHA for d096f46
Browse repository at this point
Update PyListWriter_Create() comment
vstinner
committed
a8c24ee
View commit details
Copy full SHA for a8c24ee
Browse repository at this point
Add PyListWriter_ExtendArraySteal() function
vstinner
committed
31e5f1b
View commit details
Copy full SHA for 31e5f1b
Browse repository at this point
Commits on Oct 23, 2026
Fix doc: use :term: not :ref:
vstinner
committed
db8eb51
View commit details
Copy full SHA for db8eb51
Browse repository at this point
Avoid undefined behavior: memset() with size=0
vstinner
committed
da86200
View commit details
Copy full SHA for da86200
Browse repository at this point
Commits on Oct 29, 2026
Finish() shrinks the list
Show description for 748ac24
vstinner
committed
748ac24
View commit details
Copy full SHA for 748ac24
Browse repository at this point
Commits on Nov 3, 2026
On error, Extend() restores the writer to its previous state
vstinner
committed
9efaf87
View commit details
Copy full SHA for 9efaf87
Browse repository at this point
Add PyListWriter_FromFormat()
vstinner
committed
8404760
View commit details
Copy full SHA for 8404760
Browse repository at this point
Fix undefined behavior in listwriter_extend_array() with nitem=0
vstinner
committed
9313299
View commit details
Copy full SHA for 9313299
Browse repository at this point
Inline listwriter_extend_array()
vstinner
committed
8c7ec58
View commit details
Copy full SHA for 8c7ec58
Browse repository at this point
Add PyListWriter_FromBuffer() function
Show description for e9dbc5e
vstinner
committed
e9dbc5e
View commit details
Copy full SHA for e9dbc5e
Browse repository at this point
Fix doc
vstinner
committed
995f2d5
View commit details
Copy full SHA for 995f2d5
Browse repository at this point
Optimize PyListWriter_FromBuffer()
vstinner
committed
c808cb7
View commit details
Copy full SHA for c808cb7
Browse repository at this point
Resize the list once in PyListWriter_FromBuffer()
Show description for 8e07fa1
vstinner
committed
8e07fa1
View commit details
Copy full SHA for 8e07fa1
Browse repository at this point
Commits on Nov 4, 2026
FromBuffer() tests compare to mview.tolist() and array.tolist()
vstinner
committed
04c4d30
View commit details
Copy full SHA for 04c4d30
Browse repository at this point
Commits on Nov 26, 2026
Replace PyListWriter with PyListBuilder
vstinner
committed
9155b17
View commit details
Copy full SHA for 9155b17
Browse repository at this point
Merge branch 'main' into list_writer
vstinner
committed
4b3f1bb
View commit details
Copy full SHA for 4b3f1bb
Browse repository at this point
Remove PyListBuilder_FromFormat()
vstinner
committed
4a0c537
View commit details
Copy full SHA for 4a0c537
Browse repository at this point
Remove PyListBuilder_FromBuffer()
vstinner
committed
579efe2
View commit details
Copy full SHA for 579efe2
Browse repository at this point
Replace writer with builder
vstinner
committed
d55dd15
View commit details
Copy full SHA for d55dd15
Browse repository at this point
Remove PyListBuilder_FromBuffer() remaining code
Show description for f93fe9c
vstinner
committed
f93fe9c
View commit details
Copy full SHA for f93fe9c
Browse repository at this point
Commits on Nov 27, 2026
Fix compiler warning when building in release mode
Show description for fa01664
vstinner
committed
fa01664
View commit details
Copy full SHA for fa01664
Browse repository at this point
Describe PyListBuilder_ExtendArray() error in the doc
vstinner
committed
102756f
View commit details
Copy full SHA for 102756f
Browse repository at this point
Cleanup
Show description for 0d88333
vstinner
committed
0d88333
View commit details
Copy full SHA for 0d88333
Browse repository at this point
Empty commit to trigger the CI
vstinner
committed
3e9a201
View commit details
Copy full SHA for 3e9a201
Browse repository at this point
Merge branch 'main' into list_writer
vstinner
committed
7f08f2b
View commit details
Copy full SHA for 7f08f2b
Browse repository at this point
Run prek --all-files: remove unused import in test_list.py
vstinner
committed
42190b8
View commit details
Copy full SHA for 42190b8
Browse repository at this point
Commits on Nov 28, 2026
Fix list_new_prealloc() integer overflow check
Show description for 05db290
vstinner
committed
05db290
View commit details
Copy full SHA for 05db290
Browse repository at this point
Fix _PyListBuilder_INIT_ITEMS
Show description for 297af71
vstinner
committed
297af71
View commit details
Copy full SHA for 297af71
Browse repository at this point
Fix PyListBuilder_ExtendArraySteal()
Show description for ba04abb
vstinner
committed
ba04abb
View commit details
Copy full SHA for ba04abb
Browse repository at this point
Cleanup
Show description for d36b2b3
vstinner
committed
d36b2b3
View commit details
Copy full SHA for d36b2b3
Browse repository at this point
Commits on Nov 30, 2026
Fix PyListBuilder_ExtendArraySteal() if an item is NULL
Show description for 4d48166
vstinner
committed
4d48166
View commit details
Copy full SHA for 4d48166
Browse repository at this point
Finish() always calls list_resize()
Show description for 3a02f71
vstinner
committed
3a02f71
View commit details
Copy full SHA for 3a02f71
Browse repository at this point
Apply batched suggestions from code review
Show description for 5805959
vstinner
and
encukou
authored
5805959
View commit details
Copy full SHA for 5805959
Browse repository at this point
You can’t perform that action at this time.