[issue36839] Support the buffer protocol in code objects

Serhiy Storchaka report at bugs.python.org
Thu May 30 15:07:32 EDT 2019


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

I concur with Inada. This would add complexity in the code object.

Note also that the code object is not just a sequence of bytes. It is a complex object which contains references to a dozen of objects: bytes objects, strings, integers, tuples, dicts. I suppose that the byte code itself is only a tiny part of the memory consumed by the code object in large program.

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list