None
對(duì)象?
請(qǐng)注意, None
的 PyTypeObject
不會(huì)直接在 Python / C API 中公開。 由于 None
是單例,測試對(duì)象標(biāo)識(shí)(在C中使用 ==
)就足夠了。 由于同樣的原因,沒有 PyNone_Check()
函數(shù)。
None
對(duì)象?請(qǐng)注意, None
的 PyTypeObject
不會(huì)直接在 Python / C API 中公開。 由于 None
是單例,測試對(duì)象標(biāo)識(shí)(在C中使用 ==
)就足夠了。 由于同樣的原因,沒有 PyNone_Check()
函數(shù)。