Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6772167imu; Mon, 21 Jan 2019 15:47:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN64TDsA0vWc62e/D5B9DTs/xr3flxIFSfZpK1RlQ8sXkC7A9amW+1xLQqSiMrjN8Fa3d+YV X-Received: by 2002:a17:902:b943:: with SMTP id h3mr32372391pls.12.1548114446888; Mon, 21 Jan 2019 15:47:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548114446; cv=none; d=google.com; s=arc-20160816; b=ORY9V868EqZEcinp2rBFwdCHCWodhodl8NB08bAcIg1BXwaPna09uL22MGWZRe+G2B F8nIE7BvrYK94pORnptt5AtivOZY1ribho01Fq4Qe7OZCdpw+MXGzl1KkKv9zBxP7HXv riTICO76WxyTMUyr1w0VfBCKoC1Qqr1He9iKKZR2u35grfD76ePl+7tUdpazsYQfe0BD mO2JcfOeN/yeFmDuq4xPeASsPrgJ8dV2TbatI49IGZFnjUSIR7OQNNGxQMXphXyCXXHq S+QsxeGiM3NR7NlkxG9TqwZwm4VEG8rTVfHpJ41NcXzt9CUMHnfd+J2Ua7aXrMe0KVRN aTMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=COe7AFAVDj90Dbsdq2g+JbLVB+RqXYpFsr9l1WaISlQ=; b=Qck7auAdIXkqYb7npiOW06U4MQAQcszcxJ0Y6BqYWxB3qwlEupUMvvwGVzydmZ/JuY p7pOzG3XfjHYq188dWU33QE0PfWfP6ELU8lNfID88g+4SraFgHLd/sJSe95aplvUSebG ZnYkiMY9mNiipApvz/Y6Txzvjyhwb43mCseNamn4jZ/BKLXbEoEJyTVieKxKn2XqbE7F lVqNq5p7D8tAK0R1dUAYe5G4h+WYl1cNzv/DiYuoweemE8F+O0B0X3l+hqN68OTSDfJK owAKUhfTZMveyOMqM7GteZ3ixSlEjuA0dZbtUidw683CiAjdq1SlA2tAYsj1QyhqdCzi Asfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7si14311942plg.390.2019.01.21.15.47.08; Mon, 21 Jan 2019 15:47:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725975AbfAUXp5 (ORCPT + 99 others); Mon, 21 Jan 2019 18:45:57 -0500 Received: from mx2.suse.de ([195.135.220.15]:54482 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725904AbfAUXp5 (ORCPT ); Mon, 21 Jan 2019 18:45:57 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 5E082AECD; Mon, 21 Jan 2019 23:45:56 +0000 (UTC) Subject: Re: [PATCH] perf scripts python: Add Python 3 support to mem-phys-addr.py To: seeteena , Jonathan Corbet Cc: acme@kernel.org, jolsa@redhat.com, linux-kernel@vger.kernel.org, ravi.bangoria@linux.ibm.com References: <1547655825-28754-1-git-send-email-s1seetee@linux.vnet.ibm.com> <1547655825-28754-8-git-send-email-s1seetee@linux.vnet.ibm.com> <20190116093233.4873b784@lwn.net> <89d6529f-1849-ce36-bd33-b65f2252214c@linux.vnet.ibm.com> From: Tony Jones Openpgp: preference=signenc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w5lNmQGdoV9csg7JP7saDicSFO2KcZvMbvDMqtPFipdF5UWo fZKZ3wADBQf/b5cVNyb5i8QI0G7BPGBNn4VlQX5n66TsPBnrRNOi3MhTTVEBCp8s+jqUjJjX EjjA+O4hIm7Qqdsozurw7GlcQ0A06dIzO/1RUglZZMoC0JL43ZQmJ+3+yFrLjWgGH6ev6AOb YLH7ZujgAB5n0Hy2ZIChzsKLKbHptFtBvpDKB8updq+GunsY4oN3wGa67h9sHqDvjyp64Czg n8G5uGLwx3f/edbECKz5kPUSzChEk3suK742SEP01v4ra5WX88Hn81NjGByQMz9acJLdC7Ff LzXvbNa0KgvDaSllYfsJIoGCz3eKVOuTWXOiaEIKuy833+3mr2PulLCyLKysAEddKohJBBgR AgAJBQJJEJm8AhsMAAoJELFYWyEf4koXhgQAn1EGATLZPS53At9t+p3S8BkNI9yRAJ9A0OmL liv+rwEesYGlGeGNaKHTJw== Message-ID: Date: Mon, 21 Jan 2019 15:45:52 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <89d6529f-1849-ce36-bd33-b65f2252214c@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/17/19 1:48 AM, seeteena wrote: > I have added >> You have not added "from __future__ import print_function", so you're >> relying on a Python 2 parsing oddity to make this work. I didn't see Jon's comment earlier. Sorry to have given conflicting advice. I'd not considered it a parsing oddity but I think he's correct. There is a flip side however and that is that this oddity probably works in versions older than v2.6 which is as far back as future support exists. I can't imagine anyone is using < 2.6 but I have no idea what PYTHON=python2 actually implies. The other option is to switch to sys.write.stdout which has always had more consistent semantics. Tony