Closed nieuwenhoven closed 3 years ago
Thank you so much @nieuwenhoven, this issue is open for quite a while. Finally, we do have some understanding of what's going on. I don't know why this special method is implemented in this way. It seems like we can remove the entire special method!? Can you give it a try in PyCharm (remove the method)?
You are correct. __getattr__
can be removed completely and everything still works!
Thanks again @nieuwenhoven. A new release can be found on PyPI.
Hi,
I ran into the issue that ipython crashed when importing
cbsodata
, while running scripts usingcbsodata
worked just fine. When trying to figure things out using the debugger of PyCharm, the import ofcbsodata
caused a stackoverflow because of a recursive call ofOptionsManager.__getattr__
upon creating the instance ofOptionsManager
. It appears to be the same problem as issue #16.The problem was gone after using
self.__dict__
to get the attribute instead of calling thegetattr
builtin.Kind regards,
Frans