MCPcopy Index your code
hub / github.com/python/cpython / contains_op_frozen_dict

Method contains_op_frozen_dict

Lib/test/test_opcache.py:1551–1555  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1549 self.assert_no_opcode(contains_op_dict, "CONTAINS_OP")
1550
1551 def contains_op_frozen_dict():
1552 for _ in range(_testinternalcapi.SPECIALIZATION_THRESHOLD):
1553 a, b = 1, frozendict({1: 2, 2: 5})
1554 self.assertTrue(a in b)
1555 self.assertFalse(3 in b)
1556
1557 contains_op_frozen_dict()
1558 self.assert_specialized(contains_op_frozen_dict, "CONTAINS_OP_DICT")

Callers

nothing calls this directly

Calls 3

frozendictClass · 0.85
assertTrueMethod · 0.80
assertFalseMethod · 0.80

Tested by

no test coverage detected