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

Antoine Pitrou report at bugs.python.org
Sun Oct 14 00:23:25 CEST 2012


Antoine Pitrou added the comment:

The problem with your approach is that the sequence could be mutated while another thread is running (_getbuffer() may release the GIL). Then the pre-computed size gets wrong.

----------

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


More information about the Python-bugs-list mailing list