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

Method binary_subscr_frozen_dict

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

Source from the content-addressed store, hash-verified

1830 self.assert_no_opcode(binary_subscr_dict, "BINARY_OP")
1831
1832 def binary_subscr_frozen_dict():
1833 for _ in range(_testinternalcapi.SPECIALIZATION_THRESHOLD):
1834 a = frozendict({1: 2, 2: 3})
1835 self.assertEqual(a[1], 2)
1836 self.assertEqual(a[2], 3)
1837
1838 binary_subscr_frozen_dict()
1839 self.assert_specialized(binary_subscr_frozen_dict, "BINARY_OP_SUBSCR_DICT")

Callers

nothing calls this directly

Calls 2

frozendictClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected