I would like to check if a variable is of the NoneType
type. For other types we can do stuff like:
type([])==list
But for NoneType
this simple way is not possible. That is, we cannot say type(None)==NoneType
. Is there an alternative way? And why is this possible for some types and not for others? Thank you.