From b9183950d80b42cf7d37a82f5a58e5561355e177 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Mon, 9 Sep 2013 22:39:28 -0700 Subject: Clarify mmap.close method behavior. Addresses issue #18815 Patch contributed by Anoop Thomas Mathew. --- Doc/library/mmap.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst index 1f36cec..7db60d2 100644 --- a/Doc/library/mmap.rst +++ b/Doc/library/mmap.rst @@ -155,8 +155,9 @@ To map anonymous memory, -1 should be passed as the fileno along with the length .. method:: close() - Close the file. Subsequent calls to other methods of the object will - result in an exception being raised. + Closes the mmap. Subsequent calls to other methods of the object will + result in a ValueError exception being raised. This will not close + the open file. .. attribute:: closed -- cgit v0.12