Skip to content

Instantly share code, notes, and snippets.

@matyasfodor
Last active July 16, 2017 19:54
Show Gist options
  • Save matyasfodor/67c216e1bd1a48b769ee8326157d119f to your computer and use it in GitHub Desktop.
Save matyasfodor/67c216e1bd1a48b769ee8326157d119f to your computer and use it in GitHub Desktop.
def myfunc(foo):
...
barById = {b.id: b for b in foo.bar.bazs.keys()}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment