[issue15944] memoryviews and ctypes
David Beazley
report at bugs.python.org
Fri Sep 14 19:09:18 CEST 2012
David Beazley added the comment:
Just to be specific, why is something like this not possible?
>>> d = ctypes.c_double()
>>> m = memoryview(d)
>>> m[0:8] = b'abcdefgh'
>>> d.value
8.540883223036124e+194
>>>
(Doesn't have to be exactly like this, but what's wrong with overwriting bytes with bytes of a compatible size?).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15944>
_______________________________________
More information about the Python-bugs-list
mailing list