@fgp, It's important to use in the right scenario. And in some cases, this expression is clearer and a better representation of the programmers actual intention than simply testing for
None
. There are many cases where it's expected that only true-ish values are valid. In that case it's useful not to test for just
None
. It doesn't matter whether a user passed in an empty string or
None
, I still don't want those values. —
Brendan Abel 26 secs ago