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

Method resize_and_flush

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

Source from the content-addressed store, hash-verified

258 resize_to = 1024
259
260 def resize_and_flush(mm_obj):
261 mm_obj.resize(resize_to)
262 mm_obj.flush()
263
264 with tempfile.TemporaryDirectory() as tmpdirname:
265 file_path = f"{tmpdirname}/{mmap_filename}"

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected