I tried
A == None
but for example for lists it will start checking all of the elements rather than check if A exists at all or not.
How do I check this? Is it so obvious that no one asks? I couldn't find the answer anywhere.
I tried
A == None
but for example for lists it will start checking all of the elements rather than check if A exists at all or not.
How do I check this? Is it so obvious that no one asks? I couldn't find the answer anywhere.
Try this for checking if object is None
if obj is None: print 'Object is none'