Skip to content

Instantly share code, notes, and snippets.

View sergei-dyshel's full-sized avatar
🕉️

Sergei Dyshel sergei-dyshel

🕉️
View GitHub Profile
class MultiDict(UserDict.DictMixin):
def __init__(self, data={}):
self._data = data
def _recursive_get(self, data, keys):
if not keys:
return data
return self._recursive_get(data[keys[0]], keys[1:])
def __getitem__(self, keys):