Open crux26 opened 4 years ago
@crux26, thanks for reporting this issue, I was able to reproduce it also. @dalthviz, do you know if the variable explorer calls __getattr__
many times?
@andfoy maybe this is caused for the object explorer? I think that we recursively get the attributes of the objects there
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
When print function is used in __getattribute__ method with Spyder, it prints endlessly in IPython console of Spyder. Tested the same code with Jupyter notebook and IPython (directly run with Anaconda Prompt with ipython command), but they do not have this problem.
What steps reproduce the problem?
Running below prints "Get: __class__" tens of times.
What is the expected output? What do you see instead?
It should print "Get: name" only once and nothing else (and it does in Jupyter Notebook and IPython, which is directly run through Anaconda Prompt). However, in Spyder IPython console, it prints "Get: name" first for once, and prints "Get: __class__" tens of times.
I can run something else after print function is called several tens of times. But after returning me that result, it again prints above string tens of times.
Versions
Dependencies