summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-09-09 22:40:13 -0700
committerSenthil Kumaran <senthil@uthcode.com>2013-09-09 22:40:13 -0700
commitaa1004da9797a7e440c98ddaa151153daec9e538 (patch)
treebda10ce592be5b5b3c523b70b8bfd5b10746bcf2
parent8a7687a631921a6707f21b53fe69b5a55cace5c4 (diff)
parentb9183950d80b42cf7d37a82f5a58e5561355e177 (diff)
downloadcpython-git-aa1004da9797a7e440c98ddaa151153daec9e538.tar.gz
merge from 3.3
Clarify mmap.close method behavior. Addresses issue #18815 Patch contributed by Anoop Thomas Mathew.
-rw-r--r--Doc/library/mmap.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst
index 1f36cecec2..7db60d24f8 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