Message170978
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. |
|
Date |
User |
Action |
Args |
2012-09-22 09:35:33 | skrah | set | recipients:
+ skrah, pitrou, ezio.melotti, Arfrever, serhiy.storchaka |
2012-09-22 09:35:33 | skrah | set | messageid: <1348306533.58.0.225470216912.issue15958@psf.upfronthosting.co.za> |
2012-09-22 09:35:33 | skrah | link | issue15958 messages |
2012-09-22 09:35:32 | skrah | create | |
|