Skip to content

Optimization of _BINARY_OP_SUBSCR_DICT is wrong. #148210

@markshannon

Description

@markshannon

Bug report

Bug description:

If the inputs to _BINARY_OP_SUBSCR_DICT are constant and the container is know to be a frozen dict, then _BINARY_OP_SUBSCR_DICT will be "optimized" twice.
Only one optimization should apply.

Introduced in 8e9d21c

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)release-blockertopic-JITtype-bugAn unexpected behavior, bug, or errortype-crashA hard crash of the interpreter, possibly with a core dump

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions