Re: [PATCH] scripts/gdb: replace "is 0" by "== 0"

From: Stephen Boyd
Date: Fri Mar 20 2020 - 12:49:02 EST


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@xxxxxxxxx>
> ---

Reviewed-by: Stephen Boyd <swboyd@xxxxxxxxxxxx>