[issue15958] bytes.join() should allow arbitrary buffer objects

Serhiy Storchaka report at bugs.python.org
Sat Sep 22 19:08:59 CEST 2012


Serhiy Storchaka added the comment:

> I think you should keep the
> Py_buffers alive in an array, and only release them at the end (it may
> also be slightly faster to do so).

However allocation of this array may considerably slow down the function. We 
may need the special-case for bytes and bytearray. Stop, and the bytearray (or 
bytearray subclass) can change size between two calls to Py_SIZE()?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15958>
_______________________________________


More information about the Python-bugs-list mailing list