gh-133644: remove PyWeakref_GetObject and PyWeakref_GET_OBJECT (GH-133657)

This commit is contained in:
Bénédikt Tran 2025-09-24 11:25:56 +02:00 committed by GitHub
parent 30f849250b
commit a5e0562350
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 24 additions and 73 deletions

View file

@ -964,7 +964,8 @@ PyWeakref_GetRef(PyObject *ref, PyObject **pobj)
}
PyObject *
/* removed in 3.15, but kept for stable ABI compatibility */
PyAPI_FUNC(PyObject *)
PyWeakref_GetObject(PyObject *ref)
{
if (ref == NULL || !PyWeakref_Check(ref)) {