René's URL Explorer Experiment


Title: gh-139871: Add `bytearray.take_bytes([n])` to efficiently extract `bytes` by cmaloney · Pull Request #140128 · python/cpython · GitHub

Open Graph Title: gh-139871: Add `bytearray.take_bytes([n])` to efficiently extract `bytes` by cmaloney · Pull Request #140128 · python/cpython

X Title: gh-139871: Add `bytearray.take_bytes([n])` to efficiently extract `bytes` by cmaloney · Pull Request #140128 · python/cpython

Description: Update bytearray to contain a bytes and provide a zero-copy path to "extract" the bytes. This allows making several code paths more efficient. This does not move any codepaths to make use of this n...

Open Graph Description: Update bytearray to contain a bytes and provide a zero-copy path to "extract" the bytes. This allows making several code paths more efficient. This does not move any codepaths to make use...

X Description: Update bytearray to contain a bytes and provide a zero-copy path to "extract" the bytes. This allows making several code paths more efficient. This does not move any codepaths to ...

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

X: @github

direct link

Domain: github.com

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:d5be10c8-33a9-2271-c56e-64e1a76e2070
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEB4A:1A500C:172C3B0:1E2A767:696B2508
html-safe-nonce0fd62c441c718e943662c053b16e561118f4625162ce66dc7fdb11d78c01200b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjRBOjFBNTAwQzoxNzJDM0IwOjFFMkE3Njc6Njk2QjI1MDgiLCJ2aXNpdG9yX2lkIjoiNDg2NjA5NzE5MTQ5OTQ5NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb9f87862a923e2204f2d3addca3a2c21fdb940a2ee4bde109163e14a6a2a9140
hovercard-subject-tagpull_request:2914626563
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/140128/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1556d55c139b291aa31f154b91798a25a1f5ed28326840411b9e65aba4ada113/python/cpython/pull/140128
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1556d55c139b291aa31f154b91798a25a1f5ed28326840411b9e65aba4ada113/python/cpython/pull/140128
og:image:altUpdate bytearray to contain a bytes and provide a zero-copy path to "extract" the bytes. This allows making several code paths more efficient. This does not move any codepaths to make use...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecmaloney
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/140128#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F140128
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F140128
Sign up https://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/140128
Reloadhttps://github.com/python/cpython/pull/140128
Reloadhttps://github.com/python/cpython/pull/140128
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/140128
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/140128
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/140128#issue-comment-box
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
cmaloney:bytearray_byteshttps://github.com/cmaloney/cpython/tree/bytearray_bytes
gh-139871: Add bytearray.take_bytes([n]) to efficiently extract bytes https://github.com/python/cpython/pull/140128#top
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
cmaloney:bytearray_byteshttps://github.com/cmaloney/cpython/tree/bytearray_bytes
Conversation 103 https://github.com/python/cpython/pull/140128
Commits 46 https://github.com/python/cpython/pull/140128/commits
Checks 44 https://github.com/python/cpython/pull/140128/checks
Files changed https://github.com/python/cpython/pull/140128/files
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Oct 14, 2025https://github.com/python/cpython/pull/140128#issue-3515007447
Please reload this pagehttps://github.com/python/cpython/pull/140128
Add .take_bytes([n]) a zero-copy path from bytearray to bytes #139871https://github.com/python/cpython/issues/139871
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/cmaloney
pythongh-139871https://github.com/python/cpython/issues/139871
: Update bytearray to contain PyBytesObjecthttps://github.com/python/cpython/pull/140128/commits/daf8e02c708849d160b6a71f5dcd266f21c587c6
daf8e02https://github.com/python/cpython/pull/140128/commits/daf8e02c708849d160b6a71f5dcd266f21c587c6
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Oct 14, 2025https://github.com/python/cpython/pull/140128#event-20276600139
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 14, 2025 https://github.com/python/cpython/pull/140128#ref-issue-3500184578
Add .take_bytes([n]) a zero-copy path from bytearray to bytes #139871 https://github.com/python/cpython/issues/139871
https://github.com/apps/blurb-it
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/140128/commits/39b2d15afab3a742992b09dbbbd29a5c098c43ee
39b2d15https://github.com/python/cpython/pull/140128/commits/39b2d15afab3a742992b09dbbbd29a5c098c43ee
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 14, 2025 https://github.com/python/cpython/pull/140128#pullrequestreview-3337809080
View reviewed changes https://github.com/python/cpython/pull/140128/files/39b2d15afab3a742992b09dbbbd29a5c098c43ee
Include/cpython/bytearrayobject.hhttps://github.com/python/cpython/pull/140128/files/39b2d15afab3a742992b09dbbbd29a5c098c43ee#diff-e88b6150706b7b31263446edd3b5e5aee3cf8e389c49321dcef1d9e3f9cf9501
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/cmaloney
Add bytearray.take_byteshttps://github.com/python/cpython/pull/140128/commits/86faf1da867520f6afe2d7017cbbf30a911d51d1
86faf1dhttps://github.com/python/cpython/pull/140128/commits/86faf1da867520f6afe2d7017cbbf30a911d51d1
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Oct 15, 2025https://github.com/python/cpython/pull/140128#event-20286978911
https://github.com/cmaloney
Merge branch 'main' into bytearray_byteshttps://github.com/python/cpython/pull/140128/commits/a9328f4596715f7256354cbad26d8cbd623e0694
a9328f4https://github.com/python/cpython/pull/140128/commits/a9328f4596715f7256354cbad26d8cbd623e0694
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Oct 15, 2025https://github.com/python/cpython/pull/140128#event-20287354731
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 15, 2025 https://github.com/python/cpython/pull/140128#pullrequestreview-3340264051
View reviewed changes https://github.com/python/cpython/pull/140128/files/a9328f4596715f7256354cbad26d8cbd623e0694
Doc/library/stdtypes.rsthttps://github.com/python/cpython/pull/140128/files/39b2d15afab3a742992b09dbbbd29a5c098c43ee..86faf1da867520f6afe2d7017cbbf30a911d51d1#diff-08a31a70dd1f6d97aa8dacdce77db4de04c700d9949be1af611a595186aad5b3
Please reload this pagehttps://github.com/python/cpython/pull/140128
Objects/bytearrayobject.chttps://github.com/python/cpython/pull/140128/files/39b2d15afab3a742992b09dbbbd29a5c098c43ee..86faf1da867520f6afe2d7017cbbf30a911d51d1#diff-6878f29bbfb711dc7cd2a89b2b2941b1f900b6367d30181a2ff45460b591b04c
Please reload this pagehttps://github.com/python/cpython/pull/140128
Doc/library/stdtypes.rsthttps://github.com/python/cpython/pull/140128/files/39b2d15afab3a742992b09dbbbd29a5c098c43ee..86faf1da867520f6afe2d7017cbbf30a911d51d1#diff-08a31a70dd1f6d97aa8dacdce77db4de04c700d9949be1af611a595186aad5b3
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Oct 15, 2025 https://github.com/python/cpython/pull/140128#pullrequestreview-3341597458
View reviewed changes https://github.com/python/cpython/pull/140128/files/a9328f4596715f7256354cbad26d8cbd623e0694
Misc/NEWS.d/next/Core_and_Builtins/2025-10-14-18-24-16.gh-issue-139871.SWtuUz.rsthttps://github.com/python/cpython/pull/140128/files/a9328f4596715f7256354cbad26d8cbd623e0694#diff-ddfbd7097872598346634b34d0c9f67d01c784284ba618d557a25a63cef6f2e5
Please reload this pagehttps://github.com/python/cpython/pull/140128
cmaloneyhttps://github.com/cmaloney
October 15, 2025 10:42https://github.com/python/cpython/pull/140128#commits-pushed-e9f5ca9
https://github.com/cmaloney
https://github.com/vstinner
Update Objects/bytearrayobject.chttps://github.com/python/cpython/pull/140128/commits/e9f5ca9f7b38294a2e08ece086567ba1a2c7817b
e9f5ca9https://github.com/python/cpython/pull/140128/commits/e9f5ca9f7b38294a2e08ece086567ba1a2c7817b
https://github.com/cmaloney
Review fixeshttps://github.com/python/cpython/pull/140128/commits/47849575592cb0ca3b51cef108c3e249bc7dd55c
4784957https://github.com/python/cpython/pull/140128/commits/47849575592cb0ca3b51cef108c3e249bc7dd55c
https://github.com/cmaloney
Merge branch 'main' into bytearray_byteshttps://github.com/python/cpython/pull/140128/commits/db19defda6747edd2200386c6a7e62b694a4990f
db19defhttps://github.com/python/cpython/pull/140128/commits/db19defda6747edd2200386c6a7e62b694a4990f
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Oct 15, 2025 https://github.com/python/cpython/pull/140128#pullrequestreview-3342000036
View reviewed changes https://github.com/python/cpython/pull/140128/files/db19defda6747edd2200386c6a7e62b694a4990f
Lib/test/test_bytes.pyhttps://github.com/python/cpython/pull/140128/files/db19defda6747edd2200386c6a7e62b694a4990f#diff-58df2535f64e3dcfb0677a7f543924d976fd982b595f8e34902a73f3deae40eb
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Oct 15, 2025https://github.com/python/cpython/pull/140128#issuecomment-3408507275
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/maurycy
maurycyhttps://github.com/maurycy
Oct 16, 2025 https://github.com/python/cpython/pull/140128#pullrequestreview-3347222290
View reviewed changes https://github.com/python/cpython/pull/140128/files/db19defda6747edd2200386c6a7e62b694a4990f
Objects/bytearrayobject.chttps://github.com/python/cpython/pull/140128/files/db19defda6747edd2200386c6a7e62b694a4990f#diff-6878f29bbfb711dc7cd2a89b2b2941b1f900b6367d30181a2ff45460b591b04c
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/cmaloney
https://github.com/maurycy
Update Objects/bytearrayobject.chttps://github.com/python/cpython/pull/140128/commits/451c302eb593d5cc657839e5ecacd7c6e3d31c93
451c302https://github.com/python/cpython/pull/140128/commits/451c302eb593d5cc657839e5ecacd7c6e3d31c93
https://github.com/maurycy
maurycyhttps://github.com/maurycy
Oct 17, 2025 https://github.com/python/cpython/pull/140128#pullrequestreview-3351713696
View reviewed changes https://github.com/python/cpython/pull/140128/files/451c302eb593d5cc657839e5ecacd7c6e3d31c93
Objects/bytearrayobject.chttps://github.com/python/cpython/pull/140128/files/451c302eb593d5cc657839e5ecacd7c6e3d31c93#diff-6878f29bbfb711dc7cd2a89b2b2941b1f900b6367d30181a2ff45460b591b04c
Please reload this pagehttps://github.com/python/cpython/pull/140128
cmaloneyhttps://github.com/cmaloney
October 17, 2025 17:17https://github.com/python/cpython/pull/140128#commits-pushed-bab7151
https://github.com/cmaloney
Add tests around alloc and getsizeof that show clearing isn't working…https://github.com/python/cpython/pull/140128/commits/bab71515945e710a76856ac5147e6af4ca4b8221
bab7151https://github.com/python/cpython/pull/140128/commits/bab71515945e710a76856ac5147e6af4ca4b8221
https://github.com/cmaloney
Fix resizing to 0 length / clearing leaving one byte allochttps://github.com/python/cpython/pull/140128/commits/cb2377c45c8ea5f7eebaf023e7213200b11a11c0
cb2377chttps://github.com/python/cpython/pull/140128/commits/cb2377c45c8ea5f7eebaf023e7213200b11a11c0
https://github.com/cmaloney
https://github.com/maurycy
review fix: handle NULL return from from PyBytes_FromStringAndSizehttps://github.com/python/cpython/pull/140128/commits/20175f86cacabd5f1eec8b29f02a155cde01d682
20175f8https://github.com/python/cpython/pull/140128/commits/20175f86cacabd5f1eec8b29f02a155cde01d682
https://github.com/cmaloney
Add take_bytes to test_free_threadinghttps://github.com/python/cpython/pull/140128/commits/e48559553290adbbc3875e2e23b2d031d7872783
e485595https://github.com/python/cpython/pull/140128/commits/e48559553290adbbc3875e2e23b2d031d7872783
https://github.com/cmaloney
Missed line...https://github.com/python/cpython/pull/140128/commits/b5535d0207208a2ad5617c760fbc840f935c8705
b5535d0https://github.com/python/cpython/pull/140128/commits/b5535d0207208a2ad5617c760fbc840f935c8705
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Oct 18, 2025 https://github.com/python/cpython/pull/140128#pullrequestreview-3352482777
View reviewed changes https://github.com/python/cpython/pull/140128/files/b5535d0207208a2ad5617c760fbc840f935c8705
Objects/bytearrayobject.chttps://github.com/python/cpython/pull/140128/files/b5535d0207208a2ad5617c760fbc840f935c8705#diff-6878f29bbfb711dc7cd2a89b2b2941b1f900b6367d30181a2ff45460b591b04c
Please reload this pagehttps://github.com/python/cpython/pull/140128
Objects/bytearrayobject.chttps://github.com/python/cpython/pull/140128/files/b5535d0207208a2ad5617c760fbc840f935c8705#diff-6878f29bbfb711dc7cd2a89b2b2941b1f900b6367d30181a2ff45460b591b04c
Please reload this pagehttps://github.com/python/cpython/pull/140128
Lib/test/test_bytes.pyhttps://github.com/python/cpython/pull/140128/files/b5535d0207208a2ad5617c760fbc840f935c8705#diff-58df2535f64e3dcfb0677a7f543924d976fd982b595f8e34902a73f3deae40eb
Please reload this pagehttps://github.com/python/cpython/pull/140128
cmaloneyhttps://github.com/cmaloney
October 17, 2025 20:00https://github.com/python/cpython/pull/140128#commits-pushed-7c6e8a8
https://github.com/cmaloney
Simplify getting out ob_byteshttps://github.com/python/cpython/pull/140128/commits/7c6e8a84d6659f1cd591055f4c570f7cf9cf273f
7c6e8a8https://github.com/python/cpython/pull/140128/commits/7c6e8a84d6659f1cd591055f4c570f7cf9cf273f
https://github.com/cmaloney
Include PyBytesObject in __alloc__ of bytearray.https://github.com/python/cpython/pull/140128/commits/4e27d13b05df279fd386dfad5eae789a03c371b2
4e27d13https://github.com/python/cpython/pull/140128/commits/4e27d13b05df279fd386dfad5eae789a03c371b2
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Oct 18, 2025 https://github.com/python/cpython/pull/140128#pullrequestreview-3352509440
View reviewed changes https://github.com/python/cpython/pull/140128/files/4e27d13b05df279fd386dfad5eae789a03c371b2
Objects/bytearrayobject.chttps://github.com/python/cpython/pull/140128/files/4e27d13b05df279fd386dfad5eae789a03c371b2#diff-6878f29bbfb711dc7cd2a89b2b2941b1f900b6367d30181a2ff45460b591b04c
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Oct 18, 2025 https://github.com/python/cpython/pull/140128#pullrequestreview-3352543868
View reviewed changes https://github.com/python/cpython/pull/140128/files/4e27d13b05df279fd386dfad5eae789a03c371b2
Objects/bytearrayobject.chttps://github.com/python/cpython/pull/140128/files/4e27d13b05df279fd386dfad5eae789a03c371b2#diff-6878f29bbfb711dc7cd2a89b2b2941b1f900b6367d30181a2ff45460b591b04c
cmaloneyhttps://github.com/cmaloney
Oct 18, 2025https://github.com/python/cpython/pull/140128#discussion_r2441575044
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Oct 22, 2025https://github.com/python/cpython/pull/140128#issuecomment-3434291083
@vstinnerhttps://github.com/vstinner
Please reload this pagehttps://github.com/python/cpython/pull/140128
cmaloneyhttps://github.com/cmaloney
November 4, 2025 11:56https://github.com/python/cpython/pull/140128#commits-pushed-fb84c14
https://github.com/cmaloney
Fix intermittent failure on deallocation from uninitialized memoryhttps://github.com/python/cpython/pull/140128/commits/fb84c141fae18ea46edfa71694c082e33d78d55a
fb84c14https://github.com/python/cpython/pull/140128/commits/fb84c141fae18ea46edfa71694c082e33d78d55a
https://github.com/cmaloney
PEP 7https://github.com/python/cpython/pull/140128/commits/0258891b70a6773c55afb96870e16423779132e2
0258891https://github.com/python/cpython/pull/140128/commits/0258891b70a6773c55afb96870e16423779132e2
https://github.com/cmaloney
Tweak commenthttps://github.com/python/cpython/pull/140128/commits/c4701782cb7dd0db2665f99fb2a2b1e441de86c6
c470178https://github.com/python/cpython/pull/140128/commits/c4701782cb7dd0db2665f99fb2a2b1e441de86c6
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Nov 4, 2025https://github.com/python/cpython/pull/140128#event-20712673426
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Nov 4, 2025https://github.com/python/cpython/pull/140128#issuecomment-3487923357
@cmaloneyhttps://github.com/cmaloney
c470178https://github.com/python/cpython/commit/c4701782cb7dd0db2665f99fb2a2b1e441de86c6
https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F140128%2Fmergehttps://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F140128%2Fmerge
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Nov 4, 2025https://github.com/python/cpython/pull/140128#event-20712673978
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 6, 2025https://github.com/python/cpython/pull/140128#issuecomment-3497414303
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Nov 6, 2025https://github.com/python/cpython/pull/140128#issuecomment-3498739386
Please reload this pagehttps://github.com/python/cpython/pull/140128
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/cmaloney
Add +1 so allocation is over max byte lengthhttps://github.com/python/cpython/pull/140128/commits/968113564e6bbb29d86f430950d0a1915a277e7e
9681135https://github.com/python/cpython/pull/140128/commits/968113564e6bbb29d86f430950d0a1915a277e7e
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Nov 7, 2025https://github.com/python/cpython/pull/140128#issuecomment-3500765617
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Nov 7, 2025https://github.com/python/cpython/pull/140128#issuecomment-3500765681
@cmaloneyhttps://github.com/cmaloney
9681135https://github.com/python/cpython/commit/968113564e6bbb29d86f430950d0a1915a277e7e
https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F140128%2Fmergehttps://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F140128%2Fmerge
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/cmaloney
Minor tweak for flow in whatsnew entryhttps://github.com/python/cpython/pull/140128/commits/442692a21817e9d6eda45f07d6ee4ccc53df6ed3
442692ahttps://github.com/python/cpython/pull/140128/commits/442692a21817e9d6eda45f07d6ee4ccc53df6ed3
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Nov 7, 2025https://github.com/python/cpython/pull/140128#issuecomment-3500857871
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Nov 7, 2025https://github.com/python/cpython/pull/140128#issuecomment-3500857971
@cmaloneyhttps://github.com/cmaloney
442692ahttps://github.com/python/cpython/commit/442692a21817e9d6eda45f07d6ee4ccc53df6ed3
https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F140128%2Fmergehttps://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F140128%2Fmerge
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Nov 7, 2025https://github.com/python/cpython/pull/140128#issuecomment-3500931722
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 7, 2025 https://github.com/python/cpython/pull/140128#pullrequestreview-3432057171
View reviewed changes https://github.com/python/cpython/pull/140128/files/442692a21817e9d6eda45f07d6ee4ccc53df6ed3
vstinnerhttps://github.com/vstinner
https://github.com/python/cpython/pull/140128#pullrequestreview-3432057171
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/encukou
encukouhttps://github.com/encukou
Nov 7, 2025 https://github.com/python/cpython/pull/140128#pullrequestreview-3432348703
View reviewed changes https://github.com/python/cpython/pull/140128/files/442692a21817e9d6eda45f07d6ee4ccc53df6ed3
encukouhttps://github.com/encukou
https://github.com/python/cpython/pull/140128#pullrequestreview-3432348703
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/140128
Doc/library/stdtypes.rsthttps://github.com/python/cpython/pull/140128/files/442692a21817e9d6eda45f07d6ee4ccc53df6ed3#diff-08a31a70dd1f6d97aa8dacdce77db4de04c700d9949be1af611a595186aad5b3
Please reload this pagehttps://github.com/python/cpython/pull/140128
Doc/library/stdtypes.rsthttps://github.com/python/cpython/pull/140128/files/442692a21817e9d6eda45f07d6ee4ccc53df6ed3#diff-08a31a70dd1f6d97aa8dacdce77db4de04c700d9949be1af611a595186aad5b3
Please reload this pagehttps://github.com/python/cpython/pull/140128
Doc/library/stdtypes.rsthttps://github.com/python/cpython/pull/140128/files/442692a21817e9d6eda45f07d6ee4ccc53df6ed3#diff-08a31a70dd1f6d97aa8dacdce77db4de04c700d9949be1af611a595186aad5b3
Please reload this pagehttps://github.com/python/cpython/pull/140128
cmaloneyhttps://github.com/cmaloney
November 7, 2025 09:21https://github.com/python/cpython/pull/140128#commits-pushed-ee0d6d6
https://github.com/cmaloney
https://github.com/encukou
Apply suggestions from code reviewhttps://github.com/python/cpython/pull/140128/commits/ee0d6d69c278476a25a9793a9e3546963e254a62
ee0d6d6https://github.com/python/cpython/pull/140128/commits/ee0d6d69c278476a25a9793a9e3546963e254a62
https://github.com/encukou
Merge branch 'main' into bytearray_byteshttps://github.com/python/cpython/pull/140128/commits/cc238c22f2d7591438c7b32cf32a30ee101807ef
cc238c2https://github.com/python/cpython/pull/140128/commits/cc238c22f2d7591438c7b32cf32a30ee101807ef
https://github.com/encukou
encukouhttps://github.com/encukou
November 13, 2025 12:55https://github.com/python/cpython/pull/140128#event-20916845339
https://github.com/encukou
encukouhttps://github.com/encukou
732224ehttps://github.com/python/cpython/commit/732224e1139f7ed4fe0259a2dad900f84910949e
Nov 13, 2025https://github.com/python/cpython/pull/140128#event-20917356310
Please reload this pagehttps://github.com/python/cpython/pull/140128
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 13, 2025https://github.com/python/cpython/pull/140128#event-20917357462
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Nov 13, 2025https://github.com/python/cpython/pull/140128#issuecomment-3527820782
@cmaloneyhttps://github.com/cmaloney
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/maurycy
maurycyhttps://github.com/maurycy
Nov 13, 2025https://github.com/python/cpython/pull/140128#issuecomment-3527833862
@cmaloneyhttps://github.com/cmaloney
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
November 13, 2025 18:55https://github.com/python/cpython/pull/140128#event-20924798492
https://github.com/cmaloney
cmaloneyhttps://github.com/cmaloney
Nov 13, 2025https://github.com/python/cpython/pull/140128#issuecomment-3529276258
Please reload this pagehttps://github.com/python/cpython/pull/140128
CuriousLearnerhttps://github.com/CuriousLearner
Nov 13, 2025 https://github.com/python/cpython/pull/140128#ref-commit-b9f473c
https://github.com/CuriousLearner
Merge branch 'main' into fix-issue21914https://github.com/CuriousLearner/cpython/commit/b9f473caa7ea83f0d77d70c02a12b38fe746c233
b9f473chttps://github.com/CuriousLearner/cpython/commit/b9f473caa7ea83f0d77d70c02a12b38fe746c233
pythongh-140601https://github.com/python/cpython/issues/140601
pythonGH-140603https://github.com/python/cpython/pull/140603
pythongh-137969https://github.com/python/cpython/issues/137969
python#140974https://github.com/python/cpython/pull/140974
pythongh-139109https://github.com/python/cpython/issues/139109
pythonGH-140310https://github.com/python/cpython/pull/140310
pythongh-141004https://github.com/python/cpython/issues/141004
python#141521https://github.com/python/cpython/pull/141521
pythongh-140873https://github.com/python/cpython/issues/140873
pythonGH-140884https://github.com/python/cpython/pull/140884
pythongh-139653https://github.com/python/cpython/issues/139653
python#139668https://github.com/python/cpython/pull/139668
pythongh-141004https://github.com/python/cpython/issues/141004
pythonGH-141378https://github.com/python/cpython/pull/141378
pythongh-141004https://github.com/python/cpython/issues/141004
pythonGH-141009https://github.com/python/cpython/pull/141009
pythongh-137959https://github.com/python/cpython/issues/137959
pythonGH-141496https://github.com/python/cpython/pull/141496
pythongh-139871https://github.com/python/cpython/issues/139871
pythonGH-140128https://github.com/python/cpython/pull/140128
pythongh-140601https://github.com/python/cpython/issues/140601
pythonGH-141499https://github.com/python/cpython/pull/141499
pythongh-135801https://github.com/python/cpython/issues/135801
pythonGH-139652https://github.com/python/cpython/pull/139652
pythongh-140260https://github.com/python/cpython/issues/140260
python#140909https://github.com/python/cpython/pull/140909
pythongh-137109https://github.com/python/cpython/issues/137109
python#141438https://github.com/python/cpython/pull/141438
pythongh-141004https://github.com/python/cpython/issues/141004
pythonGH-141405https://github.com/python/cpython/pull/141405
pythongh-124111https://github.com/python/cpython/issues/124111
pythonGH-128103https://github.com/python/cpython/pull/128103
pythongh-141442https://github.com/python/cpython/issues/141442
python#141443https://github.com/python/cpython/pull/141443
pythongh-140936https://github.com/python/cpython/issues/140936
pythonGH-140969https://github.com/python/cpython/pull/140969
python#141167https://github.com/python/cpython/pull/141167
pythongh-141412https://github.com/python/cpython/issues/141412
pythonGH-141428https://github.com/python/cpython/pull/141428
CuriousLearnerhttps://github.com/CuriousLearner
Nov 14, 2025 https://github.com/python/cpython/pull/140128#ref-commit-c46ecc5
https://github.com/CuriousLearner
Merge branch 'main' of github.com:python/cpython into fix-Issue18387https://github.com/CuriousLearner/cpython/commit/c46ecc50bebdcba2426c2b966bd45e432f4fc2ea
c46ecc5https://github.com/CuriousLearner/cpython/commit/c46ecc50bebdcba2426c2b966bd45e432f4fc2ea
pythongh-140601https://github.com/python/cpython/issues/140601
pythonGH-140603https://github.com/python/cpython/pull/140603
pythongh-137969https://github.com/python/cpython/issues/137969
python#140974https://github.com/python/cpython/pull/140974
pythongh-139109https://github.com/python/cpython/issues/139109
pythonGH-140310https://github.com/python/cpython/pull/140310
pythongh-141004https://github.com/python/cpython/issues/141004
python#141521https://github.com/python/cpython/pull/141521
pythongh-140873https://github.com/python/cpython/issues/140873
pythonGH-140884https://github.com/python/cpython/pull/140884
pythongh-139653https://github.com/python/cpython/issues/139653
python#139668https://github.com/python/cpython/pull/139668
pythongh-141004https://github.com/python/cpython/issues/141004
pythonGH-141378https://github.com/python/cpython/pull/141378
pythongh-141004https://github.com/python/cpython/issues/141004
pythonGH-141009https://github.com/python/cpython/pull/141009
pythongh-137959https://github.com/python/cpython/issues/137959
pythonGH-141496https://github.com/python/cpython/pull/141496
pythongh-139871https://github.com/python/cpython/issues/139871
pythonGH-140128https://github.com/python/cpython/pull/140128
pythongh-140601https://github.com/python/cpython/issues/140601
pythonGH-141499https://github.com/python/cpython/pull/141499
pythongh-135801https://github.com/python/cpython/issues/135801
pythonGH-139652https://github.com/python/cpython/pull/139652
pythongh-140260https://github.com/python/cpython/issues/140260
python#140909https://github.com/python/cpython/pull/140909
pythongh-137109https://github.com/python/cpython/issues/137109
python#141438https://github.com/python/cpython/pull/141438
pythongh-141004https://github.com/python/cpython/issues/141004
pythonGH-141405https://github.com/python/cpython/pull/141405
pythongh-124111https://github.com/python/cpython/issues/124111
pythonGH-128103https://github.com/python/cpython/pull/128103
pythongh-141442https://github.com/python/cpython/issues/141442
python#141443https://github.com/python/cpython/pull/141443
pythongh-140936https://github.com/python/cpython/issues/140936
pythonGH-140969https://github.com/python/cpython/pull/140969
python#141167https://github.com/python/cpython/pull/141167
pythongh-141412https://github.com/python/cpython/issues/141412
pythonGH-141428https://github.com/python/cpython/pull/141428
CuriousLearnerhttps://github.com/CuriousLearner
Nov 14, 2025 https://github.com/python/cpython/pull/140128#ref-commit-c240289
https://github.com/CuriousLearner
Merge branch 'main' of github.com:python/cpython into fix-issue24255https://github.com/CuriousLearner/cpython/commit/c240289cd6aa389ed8950d28f9248fadca9d071a
c240289https://github.com/CuriousLearner/cpython/commit/c240289cd6aa389ed8950d28f9248fadca9d071a
pythongh-140601https://github.com/python/cpython/issues/140601
pythonGH-140603https://github.com/python/cpython/pull/140603
pythongh-137969https://github.com/python/cpython/issues/137969
python#140974https://github.com/python/cpython/pull/140974
pythongh-139109https://github.com/python/cpython/issues/139109
pythonGH-140310https://github.com/python/cpython/pull/140310
pythongh-141004https://github.com/python/cpython/issues/141004
python#141521https://github.com/python/cpython/pull/141521
pythongh-140873https://github.com/python/cpython/issues/140873
pythonGH-140884https://github.com/python/cpython/pull/140884
pythongh-139653https://github.com/python/cpython/issues/139653
python#139668https://github.com/python/cpython/pull/139668
pythongh-141004https://github.com/python/cpython/issues/141004
pythonGH-141378https://github.com/python/cpython/pull/141378
pythongh-141004https://github.com/python/cpython/issues/141004
pythonGH-141009https://github.com/python/cpython/pull/141009
pythongh-137959https://github.com/python/cpython/issues/137959
pythonGH-141496https://github.com/python/cpython/pull/141496
pythongh-139871https://github.com/python/cpython/issues/139871
pythonGH-140128https://github.com/python/cpython/pull/140128
pythongh-140601https://github.com/python/cpython/issues/140601
pythonGH-141499https://github.com/python/cpython/pull/141499
pythongh-135801https://github.com/python/cpython/issues/135801
pythonGH-139652https://github.com/python/cpython/pull/139652
pythongh-140260https://github.com/python/cpython/issues/140260
python#140909https://github.com/python/cpython/pull/140909
pythongh-137109https://github.com/python/cpython/issues/137109
python#141438https://github.com/python/cpython/pull/141438
pythongh-141004https://github.com/python/cpython/issues/141004
pythonGH-141405https://github.com/python/cpython/pull/141405
pythongh-124111https://github.com/python/cpython/issues/124111
pythonGH-128103https://github.com/python/cpython/pull/128103
pythongh-141442https://github.com/python/cpython/issues/141442
python#141443https://github.com/python/cpython/pull/141443
pythongh-140936https://github.com/python/cpython/issues/140936
pythonGH-140969https://github.com/python/cpython/pull/140969
python#141167https://github.com/python/cpython/pull/141167
pythongh-141412https://github.com/python/cpython/issues/141412
pythonGH-141428https://github.com/python/cpython/pull/141428
StanFromIrelandhttps://github.com/StanFromIreland
Dec 6, 2025 https://github.com/python/cpython/pull/140128#ref-commit-324e322
https://github.com/cmaloney
https://github.com/vstinner
https://github.com/maurycy
https://github.com/StanFromIreland
pythongh-139871https://github.com/python/cpython/issues/139871
: Addhttps://github.com/StanFromIreland/cpython/commit/324e322490352d8fced911f58df5e62eef967975
bytearray.take_bytes([n])https://github.com/StanFromIreland/cpython/commit/324e322490352d8fced911f58df5e62eef967975
to efficiently extra…https://github.com/StanFromIreland/cpython/commit/324e322490352d8fced911f58df5e62eef967975
324e322https://github.com/StanFromIreland/cpython/commit/324e322490352d8fced911f58df5e62eef967975
pythonGH-140128https://github.com/python/cpython/pull/140128
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%2F140128
https://github.com/vstinner
vstinner https://github.com/vstinner
https://github.com/python/cpython/pull/140128/files/442692a21817e9d6eda45f07d6ee4ccc53df6ed3
https://github.com/encukou
encukou https://github.com/encukou
https://github.com/python/cpython/pull/140128/files/442692a21817e9d6eda45f07d6ee4ccc53df6ed3
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/AA-Turner
AA-Turner https://github.com/AA-Turner
https://github.com/maurycy
maurycy https://github.com/maurycy
https://github.com/python/cpython/pull/140128/files/451c302eb593d5cc657839e5ecacd7c6e3d31c93
Please reload this pagehttps://github.com/python/cpython/pull/140128
https://github.com/cmaloney
https://github.com/vstinner
https://github.com/picnixz
https://github.com/encukou
https://github.com/bedevere-bot
https://github.com/maurycy
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.