◐ Shell
clean mode source ↗

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

@JelleZijlstra

iritkatriel

…e-119180.UNDUb9.rst

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>

@JelleZijlstra

gvanrossum

@JelleZijlstra

gvanrossum

JelleZijlstra added a commit that referenced this pull request

May 25, 2024
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

Jul 17, 2024
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

Jul 17, 2024
PR python#119321 added a comment about the magic number bump
but did not actually apply the new magic number.