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) *
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) *
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.brandl messages: + keywords:patch , patch , needs review resolution: accepted
2010-05-12 19:15:29
brian.curtin
set
keywords:patch , patch , needs review versions: - Python 2.7
2010-03-03 03:39:51
brian.curtin
create