Issue 8046: mmap.mmap as a context manager (original) (raw)

Issue8046

Created on 2010-03-03 03:39 by brian.curtin, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
mmap_context_mgr.diff brian.curtin,2010-03-03 03:39 patch against trunk
Messages (2)
msg100331 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-03-03 03:39
Most file or file-like objects operate as context managers, except for mmap (and maybe a few others?). Attached is a patch with tests and documentation. The patch also introduces an additional attribute to mmap, "closed".
msg112336 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-08-01 14:50
Thanks, adapted to current trunk and applied in r83406.
History
Date User Action Args
2022-04-11 14:56:58 admin set github: 52294
2010-08-01 14:50:07 georg.brandl set status: open -> closednosy: + georg.brandlmessages: + keywords:patch, patch, needs reviewresolution: accepted
2010-05-12 19:15:29 brian.curtin set keywords:patch, patch, needs reviewversions: - Python 2.7
2010-03-03 03:39:51 brian.curtin create