mirror of
https://github.com/python/cpython.git
synced 2026-04-15 00:00:57 +00:00
gh-148083: Constant-fold _CONTAINS_OP_SET for frozenset (gh-148084)
This commit is contained in:
parent
fe9befc1ca
commit
289f19adb0
6 changed files with 70 additions and 2 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue