FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[Original HTTPS Page]
gh-139871: Add `bytearray.take_bytes([n])` to efficiently extract `bytes` by cmaloney · Pull Request #140128 · python/cpython · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.3k
Star
74.9k
Code
Issues
5k+
Pull requests
2.6k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
gh-139871: Add bytearray.take_bytes([n]) to efficiently extract bytes
- #140128
#140128
Merged
encukou
merged 46 commits into
python:main
python/cpython:main
from
cmaloney:bytearray_bytes
cmaloney/cpython:bytearray_bytes
Copy head branch name to clipboard
Nov 13, 2025
Conversation
Commits
46
(46)
Checks
Files changed
Merged
gh-139871: Add bytearray.take_bytes([n]) to efficiently extract bytes
#140128
encukou
merged 46 commits into
python:main
python/cpython:main
from
cmaloney:bytearray_bytes
cmaloney/cpython:bytearray_bytes
Copy head branch name to clipboard
Commits
Commits on Oct 14, 2025
gh-139871: Update bytearray to contain PyBytesObject
Show description for daf8e02
cmaloney
committed
daf8e02
View commit details
Copy full SHA for daf8e02
Browse repository at this point
📜🤖 Added by blurb_it.
blurb-it[bot]
authored
39b2d15
View commit details
Copy full SHA for 39b2d15
Browse repository at this point
Commits on Oct 15, 2025
Add bytearray.take_bytes
cmaloney
committed
86faf1d
View commit details
Copy full SHA for 86faf1d
Browse repository at this point
Merge branch 'main' into bytearray_bytes
cmaloney
committed
a9328f4
View commit details
Copy full SHA for a9328f4
Browse repository at this point
Update Objects/bytearrayobject.c
Show description for e9f5ca9
cmaloney
and
vstinner
authored
e9f5ca9
View commit details
Copy full SHA for e9f5ca9
Browse repository at this point
Review fixes
cmaloney
committed
4784957
View commit details
Copy full SHA for 4784957
Browse repository at this point
Merge branch 'main' into bytearray_bytes
cmaloney
authored
db19def
View commit details
Copy full SHA for db19def
Browse repository at this point
Commits on Oct 17, 2025
Update Objects/bytearrayobject.c
Show description for 451c302
cmaloney
and
maurycy
authored
451c302
View commit details
Copy full SHA for 451c302
Browse repository at this point
Commits on Oct 18, 2025
Add tests around alloc and getsizeof that show clearing isn't working which is resulting in threading failure
cmaloney
committed
bab7151
View commit details
Copy full SHA for bab7151
Browse repository at this point
Fix resizing to 0 length / clearing leaving one byte alloc
cmaloney
committed
cb2377c
View commit details
Copy full SHA for cb2377c
Browse repository at this point
review fix: handle NULL return from from PyBytes_FromStringAndSize
Show description for 20175f8
cmaloney
and
maurycy
committed
20175f8
View commit details
Copy full SHA for 20175f8
Browse repository at this point
Add take_bytes to test_free_threading
cmaloney
committed
e485595
View commit details
Copy full SHA for e485595
Browse repository at this point
Missed line...
cmaloney
committed
b5535d0
View commit details
Copy full SHA for b5535d0
Browse repository at this point
Simplify getting out ob_bytes
cmaloney
committed
7c6e8a8
View commit details
Copy full SHA for 7c6e8a8
Browse repository at this point
Include PyBytesObject in __alloc__ of bytearray.
cmaloney
committed
4e27d13
View commit details
Copy full SHA for 4e27d13
Browse repository at this point
Commits on Oct 27, 2025
Apply suggestion from @vstinner
Show description for 9887dad
cmaloney
and
vstinner
authored
9887dad
View commit details
Copy full SHA for 9887dad
Browse repository at this point
Don't multiply by sizeof(char) as it's always 1
Show description for 6e4b910
cmaloney
committed
6e4b910
View commit details
Copy full SHA for 6e4b910
Browse repository at this point
Rely on bytes for end of buffer NULL
Show description for b6f8403
cmaloney
committed
b6f8403
View commit details
Copy full SHA for b6f8403
Browse repository at this point
Personal review fixes
cmaloney
committed
28cb8c5
View commit details
Copy full SHA for 28cb8c5
Browse repository at this point
Simplify resize error handling
cmaloney
committed
f03b895
View commit details
Copy full SHA for f03b895
Browse repository at this point
Use right PyLong constructor
cmaloney
committed
a45f3c2
View commit details
Copy full SHA for a45f3c2
Browse repository at this point
Commits on Oct 29, 2025
Add a define for max bytearray size, comment size=0
cmaloney
committed
c8943e3
View commit details
Copy full SHA for c8943e3
Browse repository at this point
Remove oold comment
cmaloney
committed
5bffb7e
View commit details
Copy full SHA for 5bffb7e
Browse repository at this point
Update test_capi.test_bytearray for MemoryError vs OverflowError
cmaloney
committed
583ea4b
View commit details
Copy full SHA for 583ea4b
Browse repository at this point
More accurate size and alloc calculation
cmaloney
committed
8ee14e6
View commit details
Copy full SHA for 8ee14e6
Browse repository at this point
Comment and minor doc tweaks
cmaloney
committed
d70e369
View commit details
Copy full SHA for d70e369
Browse repository at this point
Apply suggestion from @vstinner
Show description for 97be818
cmaloney
and
vstinner
authored
97be818
View commit details
Copy full SHA for 97be818
Browse repository at this point
Remove _PyByteArray_empty_string, add bytearray_reinit_from_bytes
Show description for 99e49ef
cmaloney
authored
99e49ef
View commit details
Copy full SHA for 99e49ef
Browse repository at this point
Update Stable API concerns: restore _empty_string an dmove _PyBytesObject_SIZE
cmaloney
committed
f4b62d9
View commit details
Copy full SHA for f4b62d9
Browse repository at this point
Restore _PyByteArray_empty_string in .c file
cmaloney
committed
48afb62
View commit details
Copy full SHA for 48afb62
Browse repository at this point
remove line that shouldn't have been added
cmaloney
committed
8c81e03
View commit details
Copy full SHA for 8c81e03
Browse repository at this point
Commits on Oct 30, 2025
Apply suggestion from @encukou
Show description for 313e78c
cmaloney
and
encukou
authored
313e78c
View commit details
Copy full SHA for 313e78c
Browse repository at this point
Remove original variable, no longer used
cmaloney
committed
c028e2b
View commit details
Copy full SHA for c028e2b
Browse repository at this point
remove _PyByteArray_empty_string
cmaloney
committed
a69b338
View commit details
Copy full SHA for a69b338
Browse repository at this point
Add take_bytes_n free-threading test
Show description for 2a95118
cmaloney
committed
2a95118
View commit details
Copy full SHA for 2a95118
Browse repository at this point
Commits on Oct 31, 2025
Expand comment for ob_alloc
cmaloney
committed
9680e8a
View commit details
Copy full SHA for 9680e8a
Browse repository at this point
Add note on memmove tradeoff
cmaloney
committed
02882af
View commit details
Copy full SHA for 02882af
Browse repository at this point
Move suggested optimizing refactors to whatsnew
cmaloney
committed
b67d10c
View commit details
Copy full SHA for b67d10c
Browse repository at this point
Remove unintended change
cmaloney
committed
6db8822
View commit details
Copy full SHA for 6db8822
Browse repository at this point
Commits on Nov 4, 2025
Fix intermittent failure on deallocation from uninitialized memory
cmaloney
committed
fb84c14
View commit details
Copy full SHA for fb84c14
Browse repository at this point
PEP 7
cmaloney
committed
0258891
View commit details
Copy full SHA for 0258891
Browse repository at this point
Tweak comment
cmaloney
committed
c470178
View commit details
Copy full SHA for c470178
Browse repository at this point
Commits on Nov 7, 2025
Add +1 so allocation is over max byte length
Show description for 9681135
cmaloney
committed
9681135
View commit details
Copy full SHA for 9681135
Browse repository at this point
Minor tweak for flow in whatsnew entry
cmaloney
committed
442692a
View commit details
Copy full SHA for 442692a
Browse repository at this point
Apply suggestions from code review
Show description for ee0d6d6
cmaloney
and
encukou
authored
ee0d6d6
View commit details
Copy full SHA for ee0d6d6
Browse repository at this point
Commits on Nov 13, 2025
Merge branch 'main' into bytearray_bytes
encukou
authored
cc238c2
View commit details
Copy full SHA for cc238c2
Browse repository at this point
Back
|
FazBrowse Home
|
New Git URL