diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst --- a/Doc/library/mmap.rst +++ b/Doc/library/mmap.rst @@ -32,6 +32,8 @@ Assignment to an :const:`ACCESS_WRITE` memory map affects both memory and the underlying file. Assignment to an :const:`ACCESS_COPY` memory map affects memory but does not update the underlying file. +To be on the most portable side you should ensure that the used access +policy matches the mode used to open the specified file. To map anonymous memory, -1 should be passed as the fileno along with the length.