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 skrah
Recipients gregory.p.smith, jcon, mark.dickinson, ncoghlan, pitrou, skrah, teoliphant, vstinner, xuanji
Date 2011-08-23.15:15:01
SpamBayes Score 0.012781003
Marked as misclassified No
Message-id <1314112502.07.0.747366773276.issue5231@psf.upfronthosting.co.za>
In-reply-to
Content
Rethinking a bit: Casting to arbitrary formats might go a bit far.

Currently, the combination (format=NULL, shape=NULL) can serve as
a warning "This buffer has been cast to unsigned bytes".

If we allow casts from bytes to int32, we'll have (format="i", shape=x)
and consumers of that buffer have no indication that the original
exporter had a different format.

If you know what you are doing, fine. On the other hand following
the buffer paths in #12817 quickly turned into a very complex
maze of getbuffer requests.


So, an option would be to try out the cast to bytes first and
disallow other casts.
History
Date User Action Args
2011-08-23 15:15:02skrahsetrecipients: + skrah, gregory.p.smith, teoliphant, mark.dickinson, ncoghlan, pitrou, vstinner, xuanji, jcon
2011-08-23 15:15:02skrahsetmessageid: <1314112502.07.0.747366773276.issue5231@psf.upfronthosting.co.za>
2011-08-23 15:15:01skrahlinkissue5231 messages
2011-08-23 15:15:01skrahcreate