mardi 25 avril 2017

How do I check whether an arbitrary object is 'None' or not in python?

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.

Aucun commentaire:

Enregistrer un commentaire