In Python, the ‘null’ object is the singleton None.
To check if something is None, use the is identity operator:
if foo is None:
...
In Python, the ‘null’ object is the singleton None.
To check if something is None, use the is identity operator:
if foo is None:
...