[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <158472293810.63184.3695647310984420546@swboyd.mtv.corp.google.com>
Date: Fri, 20 Mar 2020 09:48:58 -0700
From: Stephen Boyd <swboyd@...omium.org>
To: Jan Kiszka <jan.kiszka@...mens.com>,
Kieran Bingham <kbingham@...nel.org>,
Vincent Bernat <vincent@...nat.ch>,
linux-kernel@...r.kernel.org
Cc: Vincent Bernat <vincent@...nat.ch>
Subject: Re: [PATCH] scripts/gdb: replace "is 0" by "== 0"
Quoting Vincent Bernat (2020-03-20 09:38:20)
> While for small numbers, using "node is 0" works with CPython, it is
> more portable to use "node == 0". Moreover, with Python 3, this
> triggers a syntax warning:
>
> SyntaxWarning: "is" with a literal. Did you mean "=="?
>
> Signed-off-by: Vincent Bernat <vincent@...nat.ch>
> ---
Reviewed-by: Stephen Boyd <swboyd@...omium.org>
Powered by blists - more mailing lists