Skip to content

Instantly share code, notes, and snippets.

@peterkeen
Forked from ErinCall/gist:1138231
Created August 10, 2011 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterkeen/1138235 to your computer and use it in GitHub Desktop.
Save peterkeen/1138235 to your computer and use it in GitHub Desktop.
{}.update
>>> foo = { 'a': 1, 'b': 2 }
>>> foo.update({'b': 444444, 'c': 3});
>>> foo
{'a': 1, 'c': 3, 'b': 444444}
>>> dict(bar='baz', **foo)
{'a': 1, 'c': 3, 'b': 444444, 'bar': 'baz'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment