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

Doc/library/mmap.rst

index 1f36cecec22a3626ca9fda76dba99d040ef25837..7db60d24f87eb6ff9d61f1b1c5755c4e8b6897c7 100644 (file)
@@ -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