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

Method make_weak_valued_dict

Lib/test/test_weakref.py:1684–1689  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1682 self.assertEqual(d[kw], o)
1683
1684 def make_weak_valued_dict(self):
1685 dict = weakref.WeakValueDictionary()
1686 objects = list(map(Object, range(self.COUNT)))
1687 for o in objects:
1688 dict[o.arg] = o
1689 return dict, objects
1690
1691 def check_popitem(self, klass, key1, value1, key2, value2):
1692 weakdict = klass()

Calls 1

listClass · 0.85

Tested by

no test coverage detected