PyDocs

Nav

Python Runtime Services

dict.update

builtins

method of dict
  • dict.update(**kwargs)
  • dict.update(mapping, /, **kwargs)
  • dict.update(iterable, /, **kwargs)
D.update([E, ]**F) -> None.  Update D from mapping/iterable E and F.
If E is present and has a .keys() method, then does:  for k in E.keys(): D[k] = E[k]
If E is present and lacks a .keys() method, then does:  for k, v in E: D[k] = v
In either case, this is followed by: for k in F:  D[k] = F[k]
0 Examples
No examples for builtins/dict.update.
See Also
No see-alsos for builtins/dict.update
0 Notes
No notes for dict.update