Quick question about None and comparisons

Giampaolo Rodola' gnewsg at gmail.com
Mon Nov 24 20:52:29 EST 2008


Sorry for the title but I didn't find anything more appropriate.
To have a less verbose code would it be ok doing:

if a > b:

...instead of:

if a is not None and a > b:

...?
Is there any hidden complication behind that?
Thanks in advance

--- Giampaolo
code.google.com/p/pyftpdlib/





More information about the Python-list mailing list