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

Method update

Lib/test/test_ordered_dict.py:488–489  ·  view source on GitHub ↗
(self, *args, **kwds)

Source from the content-addressed store, hash-verified

486 # Verify that subclasses can override update() without breaking __init__()
487 class MyOD(OrderedDict):
488 def update(self, *args, **kwds):
489 raise Exception()
490 items = [('a', 1), ('c', 3), ('b', 2)]
491 self.assertEqual(list(MyOD(items).items()), items)
492

Callers 4

test_updateMethod · 0.45
test_copyingMethod · 0.45
test_dict_updateMethod · 0.45
test_sizeof_exactMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected