You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# uname -a
Linux 79407f72f74b 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
# python --version
Python 3.7.4
What I want to do
>>> class A(EasyDict):
... B = EasyDict()
...
>>> a = A()
>>>
What happens
>>> class A(EasyDict):
... B = EasyDict()
...
>>> a = A()
.
.
.
setattr(self, k, getattr(self, k))
File "/opt/conda/lib/python3.7/site-packages/easydict/__init__.py", line 129, in __setattr__
value = self.__class__(value)
File "/opt/conda/lib/python3.7/site-packages/easydict/__init__.py", line 122, in __init__
setattr(self, k, getattr(self, k))
File "/opt/conda/lib/python3.7/site-packages/easydict/__init__.py", line 129, in __setattr__
value = self.__class__(value)
File "/opt/conda/lib/python3.7/site-packages/easydict/__init__.py", line 122, in __init__
setattr(self, k, getattr(self, k))
File "/opt/conda/lib/python3.7/site-packages/easydict/__init__.py", line 129, in __setattr__
value = self.__class__(value)
File "/opt/conda/lib/python3.7/site-packages/easydict/__init__.py", line 120, in __init__
for k in self.__class__.__dict__.keys():
RecursionError: maximum recursion depth exceeded while calling a Python object
The text was updated successfully, but these errors were encountered:
Environment
What I want to do
What happens
The text was updated successfully, but these errors were encountered: