gh-119180: Add LOAD_COMMON_CONSTANT opcode by JelleZijlstra · Pull Request #119321 · python/cpython
The PEP 649 implementation will require a way to load NotImplementedError from the bytecode. @markshannon suggested implementing this by converting LOAD_ASSERTION_ERROR into a more general mechanism for loading constants. This PR adds this new opcode. I will work on the rest of the implementation of the PEP separately.
JelleZijlstra added a commit that referenced this pull request
PR #119321 added a comment about the magic number bump but did not actually apply the new magic number.
estyxx pushed a commit to estyxx/cpython that referenced this pull request
The PEP 649 implementation will require a way to load NotImplementedError from the bytecode. @markshannon suggested implementing this by converting LOAD_ASSERTION_ERROR into a more general mechanism for loading constants. This PR adds this new opcode. I will work on the rest of the implementation of the PEP separately. Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
estyxx pushed a commit to estyxx/cpython that referenced this pull request
PR python#119321 added a comment about the magic number bump but did not actually apply the new magic number.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters