diff options
Diffstat (limited to 'contrib/tools/python3/Include/weakrefobject.h')
| -rw-r--r-- | contrib/tools/python3/Include/weakrefobject.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/tools/python3/Include/weakrefobject.h b/contrib/tools/python3/Include/weakrefobject.h index 8e1fa1b9286..a6e71eb178b 100644 --- a/contrib/tools/python3/Include/weakrefobject.h +++ b/contrib/tools/python3/Include/weakrefobject.h @@ -27,7 +27,11 @@ PyAPI_FUNC(PyObject *) PyWeakref_NewRef(PyObject *ob, PyObject *callback); PyAPI_FUNC(PyObject *) PyWeakref_NewProxy(PyObject *ob, PyObject *callback); -PyAPI_FUNC(PyObject *) PyWeakref_GetObject(PyObject *ref); +Py_DEPRECATED(3.13) PyAPI_FUNC(PyObject *) PyWeakref_GetObject(PyObject *ref); + +#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030D0000 +PyAPI_FUNC(int) PyWeakref_GetRef(PyObject *ref, PyObject **pobj); +#endif #ifndef Py_LIMITED_API |
