[issue35210] Use bytes + memoryview + resize instead of bytesarray + array in io.RawIOBase.read

Serhiy Storchaka report at bugs.python.org
Sat Nov 10 12:58:37 EST 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

When you remove the original reference, the second reference keeps the bytearray object live. When you remove or just resize the bytes object, the memoryview object becomes referring to freed memory.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35210>
_______________________________________


More information about the Python-bugs-list mailing list