"x == None" vs "x is None"

paul.hermeneutic at gmail.com paul.hermeneutic at gmail.com
Sun Jan 17 13:01:11 EST 2016


I prefer (x is None) and (x is not None).

This matches the SQL concept of NULL.

(X = NULL) is not valid since NULL is not a value and cannot be compared
with anything.



More information about the Python-list mailing list