Author skrah
Recipients cblp, dabeaz, eryksun, josh.r, martin.panter, pitrou, skrah
Date 2015-08-06.13:45:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1438868734.36.0.335408992643.issue15944@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2015-08-06 13:45:35skrahsetrecipients: + skrah, pitrou, dabeaz, martin.panter, cblp, eryksun, josh.r
2015-08-06 13:45:34skrahsetmessageid: <1438868734.36.0.335408992643.issue15944@psf.upfronthosting.co.za>
2015-08-06 13:45:34skrahlinkissue15944 messages
2015-08-06 13:45:32skrahcreate