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 <rep...@bugs.python.org> <http://bugs.python.org/issue21377> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com