]> granicus.if.org Git - python/commitdiff
Clarify mmap.close method behavior. Addresses issue #18815
authorSenthil Kumaran <senthil@uthcode.com>
Tue, 10 Sep 2013 05:38:58 +0000 (22:38 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Tue, 10 Sep 2013 05:38:58 +0000 (22:38 -0700)
Patch contributed by Anoop Thomas Mathew.

Doc/library/mmap.rst

index 58d00c81caeb4655a902626f216031a91de01f03..ac1963f5bbe4e1210f6da41c292aa7a1d38d00ed 100644 (file)
@@ -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]])