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 kelleynnn
Recipients kelleynnn, ncoghlan, pitrou, skrah
Date 2014-06-07.22:51:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402181514.13.0.231550585076.issue14203@psf.upfronthosting.co.za>
In-reply-to
Content
I have verified that this feature is unused in the source tree; in fact, there are no internal calls to bytearray_getbuffer() at all. The only thing bytearray_getbuffer() does with its second arg is pass it to PyBuffer_FillInfo(), which immediately checks it and passes 0 up the call stack if it is NULL. (A comment in PyBuffer_FillInfo() asks why -1 is not passed up instead; it's probably to distinguish this feature from the error condition handled in the immediately following conditional block.)

There are potentially other issues stemming from this legacy feature in bytearray_getbuffer(), PyBuffer_FillInfo(), and elsewhere. The maintainers may see fit to open tickets on these issues as well.

There's more relevant commentary on the feature here: http://comments.gmane.org/gmane.comp.python.devel/130521
History
Date User Action Args
2014-06-07 22:51:54kelleynnnsetrecipients: + kelleynnn, ncoghlan, pitrou, skrah
2014-06-07 22:51:54kelleynnnsetmessageid: <1402181514.13.0.231550585076.issue14203@psf.upfronthosting.co.za>
2014-06-07 22:51:54kelleynnnlinkissue14203 messages
2014-06-07 22:51:53kelleynnncreate