[issue18815] DOCUMENTATION: "mmap .close()" doesn't close the underlying file
New submission from Jesús Cea Avión: In documentation http://docs.python.org/3.3/library/mmap.html#mmap.close you can read: "Close the file". I could interpret that it is going to close the file vinculated to the MMAP. But it doesn't. It only close the MMAP object (as it should). Please, update doc to clear possible misunderstandings. Thanks. ---------- assignee: docs@python keywords: easy messages: 195939 nosy: docs@python, jcea priority: normal severity: normal status: open title: DOCUMENTATION: "mmap .close()" doesn't close the underlying file _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18815> _______________________________________
Anoop Thomas Mathew added the comment: Made it explicit that close() will close only the mmap, and file will not be closed. Patch attached. ---------- keywords: +patch nosy: +Anoop.Thomas.Mathew Added file: http://bugs.python.org/file31689/mmap_close_documentation.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18815> _______________________________________
Roundup Robot added the comment: New changeset 443d12b61e5b by Senthil Kumaran in branch '2.7': Clarify mmap.close method behavior. Addresses issue #18815 http://hg.python.org/cpython/rev/443d12b61e5b New changeset 373907ca13e0 by Senthil Kumaran in branch '3.3': Clarify mmap.close method behavior. Addresses issue #18815 http://hg.python.org/cpython/rev/373907ca13e0 New changeset 377bd6e0f61c by Senthil Kumaran in branch 'default': merge from 3.3 http://hg.python.org/cpython/rev/377bd6e0f61c ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18815> _______________________________________
Senthil Kumaran added the comment: This is addressed. Thanks for the patch, Anoop. ---------- nosy: +orsenthil resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18815> _______________________________________
participants (4)
-
Anoop Thomas Mathew
-
Jesús Cea Avión
-
Roundup Robot
-
Senthil Kumaran