This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients gregory.p.smith, jcon, mark.dickinson, ncoghlan, pitrou, skrah, teoliphant, vstinner, xuanji
Date 2011-08-23.15:22:38
SpamBayes Score 2.351499e-05
Marked as misclassified No
Message-id <1314112959.68.0.451269179975.issue5231@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-08-23 15:22:39ncoghlansetrecipients: + ncoghlan, gregory.p.smith, teoliphant, mark.dickinson, pitrou, vstinner, skrah, xuanji, jcon
2011-08-23 15:22:39ncoghlansetmessageid: <1314112959.68.0.451269179975.issue5231@psf.upfronthosting.co.za>
2011-08-23 15:22:39ncoghlanlinkissue5231 messages
2011-08-23 15:22:38ncoghlancreate