Message170492
| 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: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 |
|