gh-148083: Constant-fold _CONTAINS_OP_SET for frozenset (gh-148084)

This commit is contained in:
Donghee Na
2026-04-04 21:32:12 +09:00
committed by GitHub
parent fe9befc1ca
commit 289f19adb0
6 changed files with 70 additions and 2 deletions
+3
View File
@@ -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)) {