None 객체

None에 대한 PyTypeObject는 파이썬/C API에서 직접 노출되지 않습니다. None은 싱글톤이기 때문에 (C에서 ==를 사용해서) 객체 아이덴티티를 검사하는 것으로 충분합니다. 같은 이유로 PyNone_Check() 함수가 없습니다.

PyObject *Py_None

The Python None object, denoting lack of value. This object has no methods. It needs to be treated just like any other object with respect to reference counts.

Py_RETURN_NONE

Properly handle returning Py_None from within a C function (that is, increment the reference count of None and return it.)