Pythonic emptiness checking

Filip Gruszczyński gruszczy at gmail.com
Wed Apr 29 10:44:52 EDT 2009


Yes, I get the difference. If x is [], than

if x:

won't be executed and

if x is not None:

will be.

Thanks for clarifying.

-- 
Filip Gruszczyński



More information about the Python-list mailing list