Message248164
Assuming Issue 23756 is resolved and various standard library functions are meant to work with any C-contiguous buffer, then it makes sense to me for memoryview.cast("B") to work for any C-contiguous buffer. I also got the impression that David, Yuriy, and Eryksun all support this.
I don’t understand why you wouldn’t want this behaviour. It seems pointless just to maintain symmetry with being unable to cast back to “<d”. And casting from e.g. floating point to bytes to integers already disregards the original data type, so casting from unsupported types to bytes should be no worse. |
|
Date |
User |
Action |
Args |
2015-08-07 01:55:16 | martin.panter | set | recipients:
+ martin.panter, pitrou, skrah, dabeaz, cblp, eryksun, josh.r |
2015-08-07 01:55:16 | martin.panter | set | messageid: <1438912516.17.0.807883745497.issue15944@psf.upfronthosting.co.za> |
2015-08-07 01:55:16 | martin.panter | link | issue15944 messages |
2015-08-07 01:55:14 | martin.panter | create | |
|