Skip to content

Instantly share code, notes, and snippets.

@Rembane
Created June 27, 2012 14:50
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 Rembane/3004565 to your computer and use it in GitHub Desktop.
Save Rembane/3004565 to your computer and use it in GitHub Desktop.
kwargs = {k : v for k,v in zip(('etag', 'modified'), map(lambda x: getattr(self, x), ('etag', 'last_visited'))) if v}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment