Message248127
Yuriy: cast() does not do this. What's requested is that e.g. a
single float is represented as a bytes object instead of a float.
Thus, you'd be able to do:
m[0] = b'\x00\x00\x00\x01'
This has other implications, for example, two NaNs would compare
equal. Hence the suggestion memoryview(raw=True). |
|
| Date |
User |
Action |
Args |
| 2015-08-06 13:45:35 | skrah | set | recipients:
+ skrah, pitrou, dabeaz, martin.panter, cblp, eryksun, josh.r |
| 2015-08-06 13:45:34 | skrah | set | messageid: <1438868734.36.0.335408992643.issue15944@psf.upfronthosting.co.za> |
| 2015-08-06 13:45:34 | skrah | link | issue15944 messages |
| 2015-08-06 13:45:32 | skrah | create | |
|