None
物件¶
Note that thePyTypeObject
forNone
is not directly exposed in thePython/C API. SinceNone
is a singleton, testing for object identity (using==
in C) is sufficient. There is noPyNone_Check()
function for thesame reason.
- PyObject*Py_None¶
The Python
None
object, denoting lack of value. This object has no methodsand isimmortal.在 3.12 版的變更:
Py_None
為不滅的 (immortal)。