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 Arfrever, ezio.melotti, pitrou, serhiy.storchaka, skrah
Date 2012-09-22.09:35:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348306533.58.0.225470216912.issue15958@psf.upfronthosting.co.za>
In-reply-to
Content
We would need to release the buffers and also check for format 'B'.
With issue15958-2.diff this is possible:

>>> import array
>>> a = array.array('d', [1.2345])
>>> b''.join([b'ABC', a])
b'ABC\x8d\x97n\x12\x83\xc0\xf3?'


It is unfortunate that a PyBUF_SIMPLE request does not guarantee 'B'.
I think that's probably a mistake, but it's certainly existing practice.
History
Date User Action Args
2012-09-22 09:35:33skrahsetrecipients: + skrah, pitrou, ezio.melotti, Arfrever, serhiy.storchaka
2012-09-22 09:35:33skrahsetmessageid: <1348306533.58.0.225470216912.issue15958@psf.upfronthosting.co.za>
2012-09-22 09:35:33skrahlinkissue15958 messages
2012-09-22 09:35:32skrahcreate