[issue21377] PyBytes_Concat could try to concat in-place

Antoine Pitrou report at bugs.python.org
Tue Apr 29 10:46:06 CEST 2014


Antoine Pitrou added the comment:

> If I remember correctly, ceval.c has an optmisation for str += str even if
> the refcount is 2. Do we need to implement it or suggest to use bytearray
> or b''.join() instead?

The latter, IMO. This issue is about the C API _PyBytes_Concat.

----------

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


More information about the Python-bugs-list mailing list