Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b918395

Browse files
committed
Clarify mmap.close method behavior. Addresses issue #18815
Patch contributed by Anoop Thomas Mathew.
1 parent b505a6a commit b918395

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/library/mmap.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,9 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
155155

156156
.. method:: close()
157157

158-
Close the file. Subsequent calls to other methods of the object will
159-
result in an exception being raised.
158+
Closes the mmap. Subsequent calls to other methods of the object will
159+
result in a ValueError exception being raised. This will not close
160+
the open file.
160161

161162

162163
.. attribute:: closed

0 commit comments

Comments
 (0)