Message170492
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?). |
|
Date |
User |
Action |
Args |
2012-09-14 17:09:18 | dabeaz | set | recipients:
+ dabeaz, pitrou, skrah |
2012-09-14 17:09:18 | dabeaz | set | messageid: <1347642558.9.0.419903385921.issue15944@psf.upfronthosting.co.za> |
2012-09-14 17:08:57 | dabeaz | link | issue15944 messages |
2012-09-14 17:08:57 | dabeaz | create | |
|