Skip to content

Remove unused code related to the removed BINARY_SUBSCR instruction #131306

Description

@tomasr8

BINARY_SUBSCR was replaced with BINARY_OP and the NB_SUBSCR oparg in #129700 but there is still some code related to BINARY_SUBSCR that I believe can be removed. Some examples:

typedef struct {
_Py_BackoffCounter counter;
} _PyBinarySubscrCache;
#define INLINE_CACHE_ENTRIES_BINARY_SUBSCR CACHE_ENTRIES(_PyBinarySubscrCache)

cpython/Lib/opcode.py

Lines 66 to 68 in e82c2ca

"BINARY_SUBSCR": {
"counter": 1,
},

Linked PRs

Activity

  1. self-assigned this
    on Mar 15, 2025
  2. added a commit that references this issue on Mar 16, 2025
  3. added a commit that references this issue on Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions