Issue
How do I refer to the null object in Python?
Solution
In Python, the 'null' object is the singleton None
.
To check if something is None
, use the is
identity operator:
if foo is None:
...
Answered By - Ben James
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.