diff options
| author | Senthil Kumaran <senthil@uthcode.com> | 2013-09-10 05:39:28 (GMT) |
|---|---|---|
| committer | Senthil Kumaran <senthil@uthcode.com> | 2013-09-10 05:39:28 (GMT) |
| commit | b9183950d80b42cf7d37a82f5a58e5561355e177 (patch) | |
| tree | 12fb3f212e9fe584b0c0e2a78ed32c8883daf6c7 | |
| parent | b505a6ac91325bf5ddf987f3ede9069724c3c53e (diff) | |
| download | cpython-b9183950d80b42cf7d37a82f5a58e5561355e177.zip cpython-b9183950d80b42cf7d37a82f5a58e5561355e177.tar.gz cpython-b9183950d80b42cf7d37a82f5a58e5561355e177.tar.bz2 | |
Clarify mmap.close method behavior. Addresses issue #18815
Patch contributed by Anoop Thomas Mathew.
| -rw-r--r-- | Doc/library/mmap.rst | 5 |
1 files 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 |
