deimos.python.weakrefobject

Mirror weakrefobject.h

Weak references objects for Python.

Members

Functions

PyWeakref_Check
int PyWeakref_Check(PyObject* op)

This macro calls PyWeakref_CheckRef() last since that can involve a function call; this makes it more likely that the function call will be avoided.

PyWeakref_CheckProxy
int PyWeakref_CheckProxy(PyObject* op)

_

PyWeakref_CheckRef
int PyWeakref_CheckRef(PyObject* op)

_

PyWeakref_CheckRefExact
int PyWeakref_CheckRefExact(PyObject* op)

_

PyWeakref_GET_OBJECT
PyObject_BorrowedRef* PyWeakref_GET_OBJECT(PyObject* _ref)

_

PyWeakref_GetObject
PyObject_BorrowedRef* PyWeakref_GetObject(PyObject* _ref)

_

PyWeakref_NewProxy
PyObject* PyWeakref_NewProxy(PyObject* ob, PyObject* callback)

_

PyWeakref_NewRef
PyObject* PyWeakref_NewRef(PyObject* ob, PyObject* callback)

_

_PyWeakref_ClearRef
void _PyWeakref_ClearRef(PyWeakReference* self)

_

_PyWeakref_GetWeakrefCount
Py_ssize_t _PyWeakref_GetWeakrefCount(PyWeakReference* head)

_

_PyWeakref_GetWeakrefCount
C_long _PyWeakref_GetWeakrefCount(PyWeakReference* head)

_

Structs

PyWeakReference
struct PyWeakReference

PyWeakReference is the base struct for the Python ReferenceType, ProxyType, and CallableProxyType.

Meta