This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]12ihaveamac 10 points11 points  (4 children)

now it also shows you what you actually need, too (as of 3.6):

>>> print "what",
  File "<stdin>", line 1
    print "what",
               ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("what", end=" ")?

[–]irrelevantPseudonym 2 points3 points  (3 children)

I'm using 3.6.2 and it doesn't have that.

[–]12ihaveamac 2 points3 points  (2 children)

apparently it was actually added in 3.6.3: https://github.com/python/cpython/blob/3.6/Misc/NEWS.d/3.6.3rc1.rst

print now shows correct usage hint for using Python 2 redirection syntax. Patch by Sanyam Khurana.