[issue32798] mmap.flush() on Linux does not accept the "offset" and "size" args
Byron Hawkins added the comment: Couldn't the implementation check the page size and throw a better error (for relevant platforms)? Or better yet, adjust the offset to the nearest inclusive page boundary. -- ___ Python tracker &
[issue32798] mmap.flush() on Linux does not accept the "offset" and "size" args
New submission from Byron Hawkins : open_file = open("file.txt", "r+b") file_map = mmap.mmap(open_file, 0) file_map.seek(offset) file_map.write("foobar") # success file_map.flush() # success file_map.flush(offset, len("foobar")) # Fails with "errno