From: Senthil Kumaran Date: Tue, 10 Sep 2013 05:38:58 +0000 (-0700) Subject: Clarify mmap.close method behavior. Addresses issue #18815 X-Git-Tag: v2.7.6rc1~160 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b65685f3f22d66e4f99abccf56ec54cdcce36c04;p=python Clarify mmap.close method behavior. Addresses issue #18815 Patch contributed by Anoop Thomas Mathew. --- diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst index 58d00c81ca..ac1963f5bb 100644 --- a/Doc/library/mmap.rst +++ b/Doc/library/mmap.rst @@ -152,8 +152,9 @@ memory but does not update the underlying file. .. 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. .. method:: find(string[, start[, end]])