Message142833
Casting to a flat 1-D array of bytes is reasonable (it's essentially saying 'look, just give me the raw data, it's on my own head if I stuff up the formatting').
However, requiring an explicit two-step process for any other casting (i.e. take a 1-D view, then a shaped view of that flat 1-D view) also sounds reasonable.
So I agree with Victor that 1-D bytes -> any shape/format and any shape/format -> 1-D bytes should be allowed, but I think we should hold off on allowing arbitrary transformations in a single step. |
|
Date |
User |
Action |
Args |
2011-08-23 15:22:39 | ncoghlan | set | recipients:
+ ncoghlan, gregory.p.smith, teoliphant, mark.dickinson, pitrou, vstinner, skrah, xuanji, jcon |
2011-08-23 15:22:39 | ncoghlan | set | messageid: <1314112959.68.0.451269179975.issue5231@psf.upfronthosting.co.za> |
2011-08-23 15:22:39 | ncoghlan | link | issue5231 messages |
2011-08-23 15:22:38 | ncoghlan | create | |
|