I have an object converted to a string using str(object). I would like to check, using the string, if I had a None object (in my case it would never be 'None' unless the object is None).
string = str(object) // object is None
if string is 'None' or string is str(None):
// do something
The problem is the condition never passes. How can I check this case?
The same way str(None) is str(None) returns False. Why?