git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

``if var'' and ``if var is not None''


On Sun, Sep 1, 2019 at 4:16 PM Hongyi Zhao <hongyi.zhao at gmail.com> wrote:
>
> Hi,
>
> The following two forms are always equivalent:
>
> ``if var'' and ``if var is not None''
>

Ahhhhhh... False. I'll go False. I'll be honest, I might have heard
that one before, though. Sort of cheating.

ChrisA