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, 8:58 AM Terry Reedy <tjreedy at udel.edu> wrote:

> On 9/1/2019 2:12 AM, Hongyi Zhao wrote:
>
> > The following two forms are always equivalent:
> > ``if var'' and ``if var is not None''
>
> Aside from the fact that this is false, why would you post such a thing?
>   Trolling?  Did you hit  [Send] prematurely?
>

I suspect it was posted as a question despite not being phrased as such.

>