[issue9757] Add context manager protocol to memoryviews

Antoine Pitrou report at bugs.python.org
Fri Sep 3 17:11:04 CEST 2010


New submission from Antoine Pitrou <pitrou at free.fr>:

This adds the context manager protocol to memoryview objects, as proposed on python-dev. Once the `with` block has finished, the underlying buffer is released and any operation on the memoryview raises a ValueError.

----------
components: Interpreter Core
files: memcontext.patch
keywords: patch
messages: 115459
nosy: pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: Add context manager protocol to memoryviews
type: feature request
versions: Python 3.2
Added file: http://bugs.python.org/file18729/memcontext.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9757>
_______________________________________


More information about the Python-bugs-list mailing list