Skip to content

Conversation

brandtbucher
Copy link
Member

@brandtbucher brandtbucher commented Mar 30, 2022

The memoryview was a fun idea, but it actually creates some subtle memory management issues (since it can possibly outlive the code object it references).

While we could fix this by hacking around inside of the returned memoryview or giving code objects full buffer protocol support, a bytes object is totally fine here (and it even makes disassembly a bit easier).

https://bugs.python.org/issue46841

@brandtbucher brandtbucher added type-bug An unexpected behavior, bug, or error skip news labels Mar 30, 2022
@markshannon markshannon merged commit ae9de82 into python:main Apr 1, 2022
@brandtbucher brandtbucher deleted the co-code-adaptive-bytes branch July 21, 2022 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news type-bug An unexpected behavior, bug, or error

4 participants