MCPcopy 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

_byteswapFunction · 0.80
readlineMethod · 0.80
readMethod · 0.80
readallMethod · 0.80
readallMethod · 0.80
encodeMethod · 0.80
_buffer_encodeMethod · 0.80
segregateFunction · 0.80
generate_integersFunction · 0.80
readuntilMethod · 0.80
readMethod · 0.80

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected