如何PyObject从C++ 获取a的引用计数?
PyObject
有功能Py_INCREF,Py_DECREF并增加/减少它,但我没有找到任何返回对象的引用计数的函数.
Py_INCREF
Py_DECREF
我需要它用于调试目的.
c c++ python python-c-api python-internals
c ×1
c++ ×1
python ×1
python-c-api ×1
python-internals ×1