NumPy memmap: Undefined behavior when underlying file size changes
Symptom NumPy’s np.memmap maps a file into memory, but the library offers no built‑in detection of file size changes after the mapping is created. Truncating or extending the backing file can lead to silent data corruption, unexpected ValueError s, or stale reads, while concurrent writes from multiple processes may race without any protection. Goal To clarif