https://github.com/python/cpython/commit/104602a6078564765b7b8f42888f8eaa37b129b1
commit: 104602a6078564765b7b8f42888f8eaa37b129b1
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2024-03-20T23:52:23+01:00
summary:
gh-105927: Limit PyWeakref_GetRef() to limited C API 3.13 (#117091)
files:
M Include/weakrefobject.h
diff --git a/Include/weakrefobject.h b/Include/weakrefobject.h
index 727ba6934bbacb..a6e71eb178b124 100644
--- a/Include/weakrefobject.h
+++ b/Include/weakrefobject.h
@@ -28,7 +28,10 @@ PyAPI_FUNC(PyObject *) PyWeakref_NewRef(PyObject *ob,
PyAPI_FUNC(PyObject *) PyWeakref_NewProxy(PyObject *ob,
PyObject *callback);
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
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]