diff --git a/voussoirkit/dotdict.py b/voussoirkit/dotdict.py index 3449b77..0f2535b 100644 --- a/voussoirkit/dotdict.py +++ b/voussoirkit/dotdict.py @@ -25,6 +25,11 @@ class DotDict: def __setattr__(self, key, value): self.__dict__[key] = value + def __iter__(self): + display = self.__dict__.copy() + display.pop('_DotDict__default') + return iter(display.items()) + def __repr__(self): display = self.__dict__.copy() display.pop('_DotDict__default')