Well, no, you wouldn't want to do that. if not a is the accepted shorthand for if a == False, but False and None are distinct values. You should always explicitly test for None, although you can implicitly test for "not None":
if not a
if a == False
# foo has value (not None) OR foo is True
if not foo:
# foo is False
if foo is None:
# foo is None
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.