Jan-24-2021, 08:20 AM
As far as I know,
type(None)
is the normal way to get it. It is a singleton type:>>> t = type(None) >>> t() is None TrueIn CPython, it is defined in object.c in the source tree: see the lines
PyTypeObject _PyNone_Type = ...