Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from collections import defaultdict as DefaultDict
class DefaultClass(object):
def __init__(self, *args, **kwargs):
self.__dict__ = DefaultDict(*args, **kwargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment