Lines Matching refs:b
45 b = bytearray(2) variable
46 b[2:] = bytearray(10)
47 print(b)
49 b = bytearray(10) variable
50 b[:-1] = bytearray(500)
51 print(len(b), b[0], b[-1])
54 b = bytearray(x) variable
55 b[4:] = b
56 print(b)
59 b = bytearray(2) variable
60 b[1:1] = b"12345"
61 print(b)
64 b = bytearray(b'12345678') variable
65 b.append(57) # expand and add a bit of unused space at end of the bytearray
67 b[-1:] = b'ab' # grow slowly into the unused space
68 print(len(b), b)