René's URL Explorer Experiment


Title: [WIP] gh-129813, PEP 782: Add PyBytesWriter C API by vstinner · Pull Request #131681 · python/cpython · GitHub

Open Graph Title: [WIP] gh-129813, PEP 782: Add PyBytesWriter C API by vstinner · Pull Request #131681 · python/cpython

X Title: [WIP] gh-129813, PEP 782: Add PyBytesWriter C API by vstinner · Pull Request #131681 · python/cpython

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

Open Graph Description: Add functions: PyBytesWriter_Create() PyBytesWriter_Discard() PyBytesWriter_Finish() PyBytesWriter_FinishWithSize() PyBytesWriter_FinishWithEndPointer() PyBytesWriter_Data() PyBytesWriter_Allocate...

X Description: Add functions: PyBytesWriter_Create() PyBytesWriter_Discard() PyBytesWriter_Finish() PyBytesWriter_FinishWithSize() PyBytesWriter_FinishWithEndPointer() PyBytesWriter_Data() PyBytesWriter_Allocate...

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

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/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:557a8e19-7250-89b2-54bb-54eb8e8d79c3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBF30:2F9718:2FF7C6C:405392C:6B01F54A
html-safe-nonce4bc1dd5a43bdb07d18f1954f35c6b3aaae64a9c0e556dc97aea1921299aad4da
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjMwOjJGOTcxODoyRkY3QzZDOjQwNTM5MkM6NkIwMUY1NEEiLCJ2aXNpdG9yX2lkIjoiNzA3NDcxNTE1NTkwODY1NDQxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc34b41a655347856cda1c95e3c584bdebe2a370d38be5ca6c14be6fe4083e507
hovercard-subject-tagpull_request:2414253608
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/131681/commits
twitter:imagehttps://opengraph.githubassets.com/81c4fdc5a805c74bad8a75712459763d63787987681f963ea930a6dc3eb4bf38/python/cpython/pull/131681
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/81c4fdc5a805c74bad8a75712459763d63787987681f963ea930a6dc3eb4bf38/python/cpython/pull/131681
og:image:altAdd functions: PyBytesWriter_Create() PyBytesWriter_Discard() PyBytesWriter_Finish() PyBytesWriter_FinishWithSize() PyBytesWriter_FinishWithEndPointer() PyBytesWriter_Data() PyBytesWriter_Allocate...
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-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/131681/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F131681%2Fcommits
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%2F131681%2Fcommits
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/131681/commits
Reloadhttps://github.com/python/cpython/pull/131681/commits
Reloadhttps://github.com/python/cpython/pull/131681/commits
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:bytes_writer_sizehttps://github.com/vstinner/cpython/tree/bytes_writer_size
Conversationhttps://github.com/python/cpython/pull/131681
Commits30 (30)https://github.com/python/cpython/pull/131681/commits
Checkshttps://github.com/python/cpython/pull/131681/checks
Files changedhttps://github.com/python/cpython/pull/131681/files
[WIP] gh-129813, PEP 782: Add PyBytesWriter C APIhttps://github.com/python/cpython/pull/131681/commits#top
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:bytes_writer_sizehttps://github.com/vstinner/cpython/tree/bytes_writer_size
gh-129813: Add PyBytesWriter C API (flavor with size)https://github.com/python/cpython/pull/131681/commits/e24d40e6cff6c3ed947f3b425b3101abc641f842
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
e24d40ehttps://github.com/python/cpython/pull/131681/commits/e24d40e6cff6c3ed947f3b425b3101abc641f842
https://github.com/python/cpython/tree/e24d40e6cff6c3ed947f3b425b3101abc641f842
Remove PyBytesWriter_SetSize()https://github.com/python/cpython/pull/131681/commits/8761a9bcf32ee2ce086af2782f9caa3e317e384e
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
8761a9bhttps://github.com/python/cpython/pull/131681/commits/8761a9bcf32ee2ce086af2782f9caa3e317e384e
https://github.com/python/cpython/tree/8761a9bcf32ee2ce086af2782f9caa3e317e384e
Add testshttps://github.com/python/cpython/pull/131681/commits/92e1294c1fdff9ca537a044d1ecbb60470adf2c3
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
92e1294https://github.com/python/cpython/pull/131681/commits/92e1294c1fdff9ca537a044d1ecbb60470adf2c3
https://github.com/python/cpython/tree/92e1294c1fdff9ca537a044d1ecbb60470adf2c3
Add PyBytesWriter_WriteBytes()https://github.com/python/cpython/pull/131681/commits/eff71b52b22f3744edab7cf566588e1d0f43470b
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
eff71b5https://github.com/python/cpython/pull/131681/commits/eff71b52b22f3744edab7cf566588e1d0f43470b
https://github.com/python/cpython/tree/eff71b52b22f3744edab7cf566588e1d0f43470b
Add PyBytesWriter_Format()https://github.com/python/cpython/pull/131681/commits/31c7ca78a820f1dc778069e03dfdf27078a860ee
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
31c7ca7https://github.com/python/cpython/pull/131681/commits/31c7ca78a820f1dc778069e03dfdf27078a860ee
https://github.com/python/cpython/tree/31c7ca78a820f1dc778069e03dfdf27078a860ee
Fix build on Windowshttps://github.com/python/cpython/pull/131681/commits/86d0fd9a8ee7db837c222ae39e55a285e9c66b15
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
86d0fd9https://github.com/python/cpython/pull/131681/commits/86d0fd9a8ee7db837c222ae39e55a285e9c66b15
https://github.com/python/cpython/tree/86d0fd9a8ee7db837c222ae39e55a285e9c66b15
Add PyBytesWriter_ResizeAndUpdatePointer() functionhttps://github.com/python/cpython/pull/131681/commits/79fa5f8f696b3a45f48f0d5e1f6cd78f3818d91c
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
79fa5f8https://github.com/python/cpython/pull/131681/commits/79fa5f8f696b3a45f48f0d5e1f6cd78f3818d91c
https://github.com/python/cpython/tree/79fa5f8f696b3a45f48f0d5e1f6cd78f3818d91c
Convert _PyBytes_FromIterator()https://github.com/python/cpython/pull/131681/commits/bf60f7f4c0ac513a8c8f3bb3c8d32cd4b69744d3
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
bf60f7fhttps://github.com/python/cpython/pull/131681/commits/bf60f7f4c0ac513a8c8f3bb3c8d32cd4b69744d3
https://github.com/python/cpython/tree/bf60f7f4c0ac513a8c8f3bb3c8d32cd4b69744d3
Add _PyBytesWriter_CreateByteArray()https://github.com/python/cpython/pull/131681/commits/62a15be6569a1f8b9b849592a514c5de2c32d016
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
62a15behttps://github.com/python/cpython/pull/131681/commits/62a15be6569a1f8b9b849592a514c5de2c32d016
https://github.com/python/cpython/tree/62a15be6569a1f8b9b849592a514c5de2c32d016
Convert _PyBytes_FormatEx()https://github.com/python/cpython/pull/131681/commits/0a70d70925314ec723d1928567328278062262c0
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
0a70d70https://github.com/python/cpython/pull/131681/commits/0a70d70925314ec723d1928567328278062262c0
https://github.com/python/cpython/tree/0a70d70925314ec723d1928567328278062262c0
Rename PyBytesWriter_FinishWithPointer()https://github.com/python/cpython/pull/131681/commits/457e21a695f0befd4f9d810aa8d4ec1a39df258f
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
457e21ahttps://github.com/python/cpython/pull/131681/commits/457e21a695f0befd4f9d810aa8d4ec1a39df258f
https://github.com/python/cpython/tree/457e21a695f0befd4f9d810aa8d4ec1a39df258f
Add PyBytesWriter_GrowAndUpdatePointer()https://github.com/python/cpython/pull/131681/commits/40ef4e1cc4b21b28ae452e98797c5e8dd40a9791
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
40ef4e1https://github.com/python/cpython/pull/131681/commits/40ef4e1cc4b21b28ae452e98797c5e8dd40a9791
https://github.com/python/cpython/tree/40ef4e1cc4b21b28ae452e98797c5e8dd40a9791
Make PyBytesWriter_ResizeAndUpdatePointer() privatehttps://github.com/python/cpython/pull/131681/commits/0313087add58c8b06d7e6c3ad116fbef9ecf9645
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
0313087https://github.com/python/cpython/pull/131681/commits/0313087add58c8b06d7e6c3ad116fbef9ecf9645
https://github.com/python/cpython/tree/0313087add58c8b06d7e6c3ad116fbef9ecf9645
Make PyBytesWriter_GetAllocated() privatehttps://github.com/python/cpython/pull/131681/commits/c8ac889798725a9084e6bac05789b29cc1ef01a8
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
c8ac889https://github.com/python/cpython/pull/131681/commits/c8ac889798725a9084e6bac05789b29cc1ef01a8
https://github.com/python/cpython/tree/c8ac889798725a9084e6bac05789b29cc1ef01a8
Don't overallocate for bytearray()https://github.com/python/cpython/pull/131681/commits/7095ac45c474089bf0ef8aecb2878340633048df
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
7095ac4https://github.com/python/cpython/pull/131681/commits/7095ac45c474089bf0ef8aecb2878340633048df
https://github.com/python/cpython/tree/7095ac45c474089bf0ef8aecb2878340633048df
Move _PyBytesWriter_CreateByteArray() to the internal C APIhttps://github.com/python/cpython/pull/131681/commits/befd574acfb2eb4a403de8a0bb0d4458d1fd6d4b
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
befd574https://github.com/python/cpython/pull/131681/commits/befd574acfb2eb4a403de8a0bb0d4458d1fd6d4b
https://github.com/python/cpython/tree/befd574acfb2eb4a403de8a0bb0d4458d1fd6d4b
Move codehttps://github.com/python/cpython/pull/131681/commits/3ba1d1c985f91b069f47f1c8152e24ef092d185c
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
3ba1d1chttps://github.com/python/cpython/pull/131681/commits/3ba1d1c985f91b069f47f1c8152e24ef092d185c
https://github.com/python/cpython/tree/3ba1d1c985f91b069f47f1c8152e24ef092d185c
Add exampleshttps://github.com/python/cpython/pull/131681/commits/ede2776e435334bd355c2f852c3d838597414733
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
ede2776https://github.com/python/cpython/pull/131681/commits/ede2776e435334bd355c2f852c3d838597414733
https://github.com/python/cpython/tree/ede2776e435334bd355c2f852c3d838597414733
Add high-level API examplehttps://github.com/python/cpython/pull/131681/commits/be56685fe3341d7b13f72eeb35315846fb969856
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
be56685https://github.com/python/cpython/pull/131681/commits/be56685fe3341d7b13f72eeb35315846fb969856
https://github.com/python/cpython/tree/be56685fe3341d7b13f72eeb35315846fb969856
Fix testshttps://github.com/python/cpython/pull/131681/commits/1135390112c083640de2b28def7833f3f81fe006
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
1135390https://github.com/python/cpython/pull/131681/commits/1135390112c083640de2b28def7833f3f81fe006
https://github.com/python/cpython/tree/1135390112c083640de2b28def7833f3f81fe006
fix linterhttps://github.com/python/cpython/pull/131681/commits/000ba585c284493df20afb116c0e4f4008e27016
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
000ba58https://github.com/python/cpython/pull/131681/commits/000ba585c284493df20afb116c0e4f4008e27016
https://github.com/python/cpython/tree/000ba585c284493df20afb116c0e4f4008e27016
Convert more functionshttps://github.com/python/cpython/pull/131681/commits/b864c26eddc1f2d69f053b853220548381c1b3ed
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
b864c26https://github.com/python/cpython/pull/131681/commits/b864c26eddc1f2d69f053b853220548381c1b3ed
https://github.com/python/cpython/tree/b864c26eddc1f2d69f053b853220548381c1b3ed
Convert _hashopenssl functionhttps://github.com/python/cpython/pull/131681/commits/6d7e37dd9c6d14d8d2e8ea94077e577b39edf6fe
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
6d7e37dhttps://github.com/python/cpython/pull/131681/commits/6d7e37dd9c6d14d8d2e8ea94077e577b39edf6fe
https://github.com/python/cpython/tree/6d7e37dd9c6d14d8d2e8ea94077e577b39edf6fe
Detect strlen() overflowhttps://github.com/python/cpython/pull/131681/commits/d8a4659ced24a2544f158ae4bb8e17a30b44a5b3
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
d8a4659https://github.com/python/cpython/pull/131681/commits/d8a4659ced24a2544f158ae4bb8e17a30b44a5b3
https://github.com/python/cpython/tree/d8a4659ced24a2544f158ae4bb8e17a30b44a5b3
Fix mmaphttps://github.com/python/cpython/pull/131681/commits/ed00f952146bbcb3c3afda90730bf420ebb40214
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
ed00f95https://github.com/python/cpython/pull/131681/commits/ed00f952146bbcb3c3afda90730bf420ebb40214
https://github.com/python/cpython/tree/ed00f952146bbcb3c3afda90730bf420ebb40214
Grow() can now shrink the bufferhttps://github.com/python/cpython/pull/131681/commits/630789529cfe58842abe677207434478b9ef43ac
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
6307895https://github.com/python/cpython/pull/131681/commits/630789529cfe58842abe677207434478b9ef43ac
https://github.com/python/cpython/tree/630789529cfe58842abe677207434478b9ef43ac
Fix WriteBytes()https://github.com/python/cpython/pull/131681/commits/18d41ffdbfd1d167b0ebf55fad145113e69e7847
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
18d41ffhttps://github.com/python/cpython/pull/131681/commits/18d41ffdbfd1d167b0ebf55fad145113e69e7847
https://github.com/python/cpython/tree/18d41ffdbfd1d167b0ebf55fad145113e69e7847
Merge branch 'main' into bytes_writer_sizehttps://github.com/python/cpython/pull/131681/commits/4cf51f32c443db8c2120e44bed8ab5fca338174f
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
4cf51f3https://github.com/python/cpython/pull/131681/commits/4cf51f32c443db8c2120e44bed8ab5fca338174f
https://github.com/python/cpython/tree/4cf51f32c443db8c2120e44bed8ab5fca338174f
Merge branch 'main' into bytes_writer_sizehttps://github.com/python/cpython/pull/131681/commits/93f8447ee80fc39b25f5f7923b54ca367071e845
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
93f8447https://github.com/python/cpython/pull/131681/commits/93f8447ee80fc39b25f5f7923b54ca367071e845
https://github.com/python/cpython/tree/93f8447ee80fc39b25f5f7923b54ca367071e845
Merge branch 'main' into bytes_writer_sizehttps://github.com/python/cpython/pull/131681/commits/a261a43d0d438c5f7a4c8e051aab8a670dec070d
https://github.com/vstinner
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
a261a43https://github.com/python/cpython/pull/131681/commits/a261a43d0d438c5f7a4c8e051aab8a670dec070d
https://github.com/python/cpython/tree/a261a43d0d438c5f7a4c8e051aab8a670dec070d
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.