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

Ian Kelly ian.g.kelly at gmail.com
Sun Sep 1 11:58:13 EDT 2019


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.

>



More information about the Python-list mailing list