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`.
[ Parent
| on HN ]
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.
Oh, weird. I could have sworn I've seen errors for using parens with `print` in Python 2...