[issue11427] ctypes from_buffer no longer accepts bytes
STINNER Victor
report at bugs.python.org
Tue Nov 29 14:19:48 CET 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
.from_buffer() expects a modifiable buffer, bytes type is immutable. If .from_buffer() accepted an immutable buffer, it was a bug and the bug was fixed.
If you want to use bytes, use .from_buffer_copy() instead of .from_buffer().
----------
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11427>
_______________________________________
More information about the Python-bugs-list
mailing list