[issue22003] BytesIO copy-on-write

Antoine Pitrou report at bugs.python.org
Mon Jul 21 17:31:02 CEST 2014


Antoine Pitrou added the comment:

> Pretty sure this approach is broken. What about the alternative approach of specializing for Bytes?

That would certainly sound good enough, to optimize the common case.

Also, it would be nice if you could add some tests to the patch (e.g. to stress the bytearray case). Thank you!

----------

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


More information about the Python-bugs-list mailing list