News for hackers. Stuff that matters.
Re:Grumpy: Go running Python by weberc2 on Wednesday January 04, 2017 @04:53PM (#13322412)
Interesting to note that `print()` is supported out of the box--no need to `from __future__ import print_function`.
Re:Grumpy: Go running Python by emmelaich on Wednesday January 04, 2017 @07:28PM (#13323586)
Sure, but that works without from `__future__ import print_function` in Python2 as well.

But it gives different output; the print() prints a tuple whereas the function print() prints a newline.

Also compare print(1) and print(1,2) with and without the __future__ import.

Re:Grumpy: Go running Python by weberc2 on Wednesday January 04, 2017 @07:51PM (#13323713)
Oh, weird. I could have sworn I've seen errors for using parens with `print` in Python 2...
Re:Grumpy: Go running Python by jabagawee on Wednesday January 04, 2017 @07:10PM (#13323432)
That's a print statement with an expression surrounded by parentheses. You can try it yourself in a Python 2 interpreter.