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

Antoine Pitrou report at bugs.python.org
Sat Oct 13 22:38:17 CEST 2012


Antoine Pitrou added the comment:

> Patch LGTM, however...
> 
> $ ./python -m timeit -s "a=[b'a']*100000"  "b','.join(a)"
> 
> Vanilla: 3.69 msec per loop
> Patched: 11.6 msec per loop

True. It is a bit of a pathological case, though.

----------

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


More information about the Python-bugs-list mailing list