I'm using Python 3.5.2, PyCharm Community Edition 2017.1.1 in Ubuntu 16.04.2 LTS
I'm a beginner in Python and I'm trying to get this code to work.
a = getattr(__builtins__, 'print')
Actually it works fine in IDLE, but Pycharm is not recognising the builtins. Other common builtins functions like str(), int()... are woking fine.
I searched in Pycharm support for solutions.
The "Reload" button in Settings | Python Interpreters regenerates the skeletons for binary modules, including builtins. Please try pressing it.
But its not working too. I get this in Pycharm...
AttributeError: 'dict' object has no attribute 'print'
Thank you in advance.