Message170978
| 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. |
|