In Python, the ‘null’ object is the singleton None
.
The best way to check things for “Noneness” is to use the identity operator, is
:
if foo is None: ...
In Python, the ‘null’ object is the singleton None
.
The best way to check things for “Noneness” is to use the identity operator, is
:
if foo is None: ...