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

Method move

Lib/test/test_free_threading/test_mmap.py:121–124  ·  view source on GitHub ↗
(mm_obj)

Source from the content-addressed store, hash-verified

119 num_letters = len(ascii_uppercase)
120
121 def move(mm_obj):
122 for i in range(num_letters):
123 # Move 1 byte from the first half to the second half
124 mm_obj.move(0 + i, num_letters + i, 1)
125
126 with mmap.mmap(ANONYMOUS_MEM, 2 * num_letters) as mm_obj:
127 mm_obj.write(ascii_uppercase)

Callers 15

test_move_cursorMethod · 0.45
test_output_characterMethod · 0.45
test_output_stringMethod · 0.45
test_read_from_windowMethod · 0.45
test_clearMethod · 0.45
test_insert_deleteMethod · 0.45
test_chgatMethod · 0.45
test_moveMethod · 0.45
_check_move_fileMethod · 0.45
_check_move_dirMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected