Skip to content

Conversation

@brandtbucher
Copy link
Member

@brandtbucherbrandtbucher 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

@brandtbucherbrandtbucher added type-bug An unexpected behavior, bug, or error skip news labels Mar 30, 2022
@brandtbucherbrandtbucher mentioned this pull request Mar 30, 2022
26 tasks
@markshannonmarkshannon merged commit ae9de82 into python:mainApr 1, 2022
@brandtbucherbrandtbucher mentioned this pull request Apr 10, 2022
@brandtbucherbrandtbucher deleted the co-code-adaptive-bytes branch July 21, 2022 19:52
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip newstype-bugAn unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@brandtbucher@markshannon@the-knights-who-say-ni@bedevere-bot