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

Terry Reedy tjreedy at udel.edu
Sun Sep 1 10:54:53 EDT 2019


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?


-- 
Terry Jan Reedy




More information about the Python-list mailing list