New submission from Brian Curtin <cur...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue8046>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to