Author dabeaz
Recipients dabeaz, pitrou, skrah
Date 2012-09-14.17:08:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347642558.9.0.419903385921.issue15944@psf.upfronthosting.co.za>
In-reply-to
Content
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?).
History
Date User Action Args
2012-09-14 17:09:18dabeazsetrecipients: + dabeaz, pitrou, skrah
2012-09-14 17:09:18dabeazsetmessageid: <1347642558.9.0.419903385921.issue15944@psf.upfronthosting.co.za>
2012-09-14 17:08:57dabeazlinkissue15944 messages
2012-09-14 17:08:57dabeazcreate