[issue8046] mmap.mmap as a context manager
Brian Curtin
report at bugs.python.org
Wed Mar 3 04:39:53 CET 2010
New submission from Brian Curtin <curtin at acm.org>:
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".
----------
components: Library (Lib)
files: mmap_context_mgr.diff
keywords: needs review, patch, patch
messages: 100331
nosy: brian.curtin
priority: normal
severity: normal
stage: patch review
status: open
title: mmap.mmap as a context manager
type: feature request
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file16420/mmap_context_mgr.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8046>
_______________________________________
More information about the Python-bugs-list
mailing list