MCPcopy Create free account
hub / github.com/python/cpython / store_subscr_frozen_dict

Method store_subscr_frozen_dict

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

Source from the content-addressed store, hash-verified

1899 self.assert_no_opcode(store_subscr_dict, "STORE_SUBSCR")
1900
1901 def store_subscr_frozen_dict():
1902 dicts = [{1: 2}, frozendict({1: 2})]
1903 for i in range(_testinternalcapi.SPECIALIZATION_THRESHOLD + 1):
1904 d = dicts[i == _testinternalcapi.SPECIALIZATION_THRESHOLD]
1905 d[1] = 3
1906
1907 with self.assertRaises(TypeError):
1908 store_subscr_frozen_dict()

Callers

nothing calls this directly

Calls 1

frozendictClass · 0.85

Tested by

no test coverage detected