Skip to content

Instantly share code, notes, and snippets.

@rsyring
Created July 23, 2014 15:20
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 rsyring/539797e18eada076bab1 to your computer and use it in GitHub Desktop.
Save rsyring/539797e18eada076bab1 to your computer and use it in GitHub Desktop.
autokeyed python dictionary using defaultdict
from collections import defaultdict
def autokeyed_dict():
return defaultdict(autokeyed_dict)
mydict = autokeyed_dict()
mydict['properties']['recent_conversion_event_name']['value'] = 'Test Drive Form'
@rsyring
Copy link
Author

rsyring commented Jul 23, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment