Gentoo Archives: gentoo-portage-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] runtests: rewrite in python
Date: Sat, 30 May 2015 19:16:33
Message-Id: 20150530191621.GK2101@vapier
In Reply to: Re: [gentoo-portage-dev] [PATCH] runtests: rewrite in python by Mike Gilbert
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

Attachments

File name MIME type
signature.asc application/pgp-signature