8 ms·
>>> print "hi" SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? I would be in favor of that for this one!
by dataflow 5y ago
>>> print "hi"
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
I would be in favor of that for this one!
- 3np 5y agoThat was the behavior in python2 and it was changed for good reason. If you do want this, consider ipython as your Python REPL. https://ipython.readthedocs.io/en/stable/interactive/magics.html#magic-autocall https://ipython.readthedocs.io/en/stable/interactive/magics....
- dataflow 5y agoYes, hence the semi-joke. But I actually do think it was a good feature and a bad idea to remove it.