PyCharm intellisense treats print() is an expression for Python 3

Answered

Hi All:

In the editor, PyCharm complains that

q=print(20)

is an expression.

 

I am running Python 3 (in which case print is a function that return None)

Code runs fine.

Please advise

 

1 comment
Comment actions Permalink

What's your version of PyCharm? Make sure you've selected a Python 3 interpreter in File | Settings | Project | Project Interpreter.

0

Please sign in to leave a comment.