PyWeakref_GetObject is deprecated, removal in Python 3.15 #191

Closed
opened 2026-01-09 18:48:19 +00:00 by john · 0 comments
Owner

see: https://docs.python.org/3/deprecations/index.html#id1 -- "use PyWeakref_GetRef instead"

McRogueFace/src$ grep "PyWeakref_GetObject" *
PythonObjectCache.cpp:    // No mutex needed for read - GIL protects PyWeakref_GetObject
PythonObjectCache.cpp:        PyObject* obj = PyWeakref_GetObject(it->second);
PythonObjectCache.cpp:        PyObject* obj = PyWeakref_GetObject(it->second);
see: https://docs.python.org/3/deprecations/index.html#id1 -- "use [PyWeakref_GetRef](https://docs.python.org/3/c-api/weakref.html#c.PyWeakref_GetRef) instead" ``` McRogueFace/src$ grep "PyWeakref_GetObject" * PythonObjectCache.cpp: // No mutex needed for read - GIL protects PyWeakref_GetObject PythonObjectCache.cpp: PyObject* obj = PyWeakref_GetObject(it->second); PythonObjectCache.cpp: PyObject* obj = PyWeakref_GetObject(it->second); ```
john closed this issue 2026-01-12 01:48:19 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
john/McRogueFace#191
No description provided.