[issue22003] BytesIO copy-on-write

Antoine Pitrou report at bugs.python.org
Wed Jul 23 01:19:56 CEST 2014


Antoine Pitrou added the comment:

I don't like the idea of trying to hash the object. It may be a time-consuming operation, while the result will be thrown away.

I think restricting the optimization to bytes objects is fine. We can whitelist other types, such as memoryview.

----------

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


More information about the Python-bugs-list mailing list