mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
gh-148083: Constant-fold _CONTAINS_OP_SET for frozenset (gh-148084)
This commit is contained in:
@@ -706,6 +706,9 @@ dummy_func(void) {
|
||||
b = sym_new_type(ctx, &PyBool_Type);
|
||||
l = left;
|
||||
r = right;
|
||||
if (sym_matches_type(right, &PyFrozenSet_Type)) {
|
||||
REPLACE_OPCODE_IF_EVALUATES_PURE(left, right, b);
|
||||
}
|
||||
}
|
||||
|
||||
op(_CONTAINS_OP_DICT, (left, right -- b, l, r)) {
|
||||
|
||||
Reference in New Issue
Block a user