[issue36839] Support the buffer protocol in code objects

Inada Naoki report at bugs.python.org
Tue May 28 01:00:22 EDT 2019


Inada Naoki <songofacandy at gmail.com> added the comment:

I don't like this.
It removes guarantee that code object is constant / immutable.

> Because the code objects are on random pages and are ref counted the ref counts can cause all of the code to not be shared across processes.

These ref counts are not incremented or decremented typically, until shutting down.
If you want to avoid CoW when shutting down, you can use os._exit.

----------
nosy: +inada.naoki

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


More information about the Python-bugs-list mailing list