dict().update({0: 0, 1: 1})
=> None
According to the docs update should take a dict argument. It should also take a list of pairs:
d = {0: 0, 1: 1}
dict().update(d.items())
=> None
I just need to combine two dictionaries. This should be trivial, but I can't see how to do it.