[issue34905] Cannot assign memoryview values from array.array

Stefan Krah report at bugs.python.org
Sat Oct 6 05:59:56 EDT 2018


Stefan Krah <stefan at bytereef.org> added the comment:

>>> mview.format
'B'
>>> mview[:] = array.array('B', b'hello')


Bytes have format 'B', so this works as expected.

----------
assignee:  -> skrah
nosy: +skrah
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34905>
_______________________________________


More information about the Python-bugs-list mailing list