MCPcopy Index your code
hub / github.com/python/cpython / resize

Method resize

Lib/test/test_bytes.py:2787–2789  ·  view source on GitHub ↗
(b, a)

Source from the content-addressed store, hash-verified

2785 assert not c or c[-1] not in (0xdd, 0xcd)
2786
2787 def resize(b, a): # MODIFIES!
2788 b.wait()
2789 a.resize(10)
2790
2791 def take_bytes(b, a): # MODIFIES!
2792 b.wait()

Callers 15

test_resizeMethod · 0.45
test_take_bytesMethod · 0.45
test_resize_forbiddenMethod · 0.45
resize_stressMethod · 0.45
test_resizeMethod · 0.45
test_issue13051Method · 0.45
test_resizeMethod · 0.45
test_access_parameterMethod · 0.45
test_trackfd_neg1Method · 0.45
test_offsetMethod · 0.45

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected