1 |
On 30 May 2015 14:42, Mike Gilbert wrote: |
2 |
> On Sat, May 30, 2015 at 1:18 PM, Brian Dolbec wrote: |
3 |
> > On Sat, 30 May 2015 12:29:14 -0400 Mike Frysinger wrote: |
4 |
> >> +from __future__ import print_function |
5 |
> > |
6 |
> > If I'm not mistaken, this is not needed for 2.7+ anymore. It is |
7 |
> > still for 2.6 though. |
8 |
> |
9 |
> You are mistaken. Without this, print is still treated as a statement |
10 |
> and anything in parens is treated as a tuple. |
11 |
|
12 |
not exactly true -- (1) and ("foo") are not tuples. need a comma to turn |
13 |
a paren into a tuple. e.g. (1,) and ("foo",). |
14 |
-mike |