[issue22003] BytesIO copy-on-write

Piotr Dobrogost report at bugs.python.org
Wed Mar 4 21:12:27 CET 2015


Piotr Dobrogost added the comment:

> This new patch abandons the buffer interface and specializes for Bytes per the comments on this issue.

Why does it abandon buffer interface? Because of the following?

> Thanks for digging here. As much as I'd love to follow this interpretation, it simply doesn't match existing buffer implementations, including within the standard library.

Shouldn't existing buffer implementations be fixed then and this feature made to use buffer interface instead of specialize for Bytes? If so is there at least any information on this in the comments so that one wouldn't wonder why there is specialization instead of relaying on buffer interface?

----------
nosy: +piotr.dobrogost

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


More information about the Python-bugs-list mailing list