MCPcopy Index your code
hub / github.com/RustPython/RustPython / example

Method example

Lib/test/test_array.py:1739–1743  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

1737 typecode = 'b'
1738
1739 def example(self, size):
1740 # We assess a base memuse of <=2.125 for constructing this array
1741 base = array.array(self.typecode, [0, 1, 2, 3, 4, 5, 6, 7]) * (size // 8)
1742 base += array.array(self.typecode, [99]*(size % 8) + [8, 9, 10, 11])
1743 return base
1744
1745 @support.bigmemtest(_2G, memuse=2.125)
1746 def test_example_data(self, size):

Callers 15

test_example_dataMethod · 0.95
test_accessMethod · 0.95
test_sliceMethod · 0.95
test_countMethod · 0.95
test_appendMethod · 0.95
test_extendMethod · 0.95
test_frombytesMethod · 0.95
test_fromlistMethod · 0.95
test_indexMethod · 0.95
test_insertMethod · 0.95
test_popMethod · 0.95
test_removeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected