SyntaxFix
Write A Post
Hire A Developer
Questions
For the sake of defensive programming, objects should be checked against nullity before using.
if obj is None:
or
if obj is not None: