[New-bugs-announce] [issue28646] Using a read-only buffer.

Michael Rolle report at bugs.python.org
Tue Nov 8 23:04:52 EST 2016


New submission from Michael Rolle:

Suggest that the _CData.from_buffer (source) method allow a read-only
source as an argument, in which case any assignments to
the object would raise some type of exception.
If the source is shared with some writable object,
then changes to said object would be reflected in the
_CData object.  If this behavior is not what you want,
then you could just make a new method called, say,
from_buffer_shared (source).

----------
components: ctypes
messages: 280375
nosy: mrolle
priority: normal
severity: normal
status: open
title: Using a read-only buffer.
type: enhancement

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


More information about the New-bugs-announce mailing list