How do I refer to the null object in Python?
In Python, the 'null' object is the singleton None.
None
The best way to check things for "Noneness" is to use the identity operator, is:
is
if foo is None: ...
1.4m articles
1.4m replys
5 comments
57.0k users