Jan-05-2019, 01:45 AM
At least one method will rise an exception (unhashable type):
So, you probably need to accomplish the class with
def __hash__(self): return hash(self.__dict__)Another issue is original dict instances are iterable, but attrdict ones aren't.
So, you probably need to accomplish the class with
__iter__
and __next__
methods.