Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ take_bytes
Method
take_bytes
Lib/test/test_bytes.py:2791–2794 ·
view source on GitHub ↗
(b, a)
Source
from the content-addressed store, hash-verified
2789
a.resize(10)
2790
2791
def
take_bytes(b, a):
# MODIFIES!
2792
b.wait()
2793
c = a.take_bytes()
2794
assert not c or c[0] == 48
# '0'
2795
2796
def
take_bytes_n(b, a):
# MODIFIES!
2797
b.wait()
Callers
15
_byteswap
Function · 0.80
readline
Method · 0.80
read
Method · 0.80
readall
Method · 0.80
readall
Method · 0.80
encode
Method · 0.80
_buffer_encode
Method · 0.80
segregate
Function · 0.80
generate_generalized_integer
Function · 0.80
generate_integers
Function · 0.80
readuntil
Method · 0.80
read
Method · 0.80
Calls
1
wait
Method · 0.45
Tested by
no test coverage detected