-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
For Python 3.15, the PyWeakref_GetObject function, deprecated since Python 3.13, will be removed from the Python C API. The recommendation is to use PyWeakref_GetRef) instead.
The following uses of PyWeakref_GetObject need to be replaced for compatibility with Python 3.15.
OpenUSD/pxr/base/tf/pyWeakObject.cpp
Lines 115 to 121 in 0c7c52b
| pxr_boost::python::object | |
| Tf_PyWeakObject::GetObject() const | |
| { | |
| return pxr_boost::python::object | |
| (pxr_boost::python::handle<> | |
| (pxr_boost::python::borrowed(PyWeakref_GetObject(_weakRef.get())))); | |
| } |
OpenUSD/pxr/base/tf/pyIdentity.cpp
Lines 135 to 142 in 0c7c52b
| PyObject * | |
| Tf_PyIdHandle::Ptr() const { | |
| if (_weakRef) { | |
| TfPyLock lock; | |
| return PyWeakref_GetObject(_weakRef); | |
| } | |
| return 0; | |
| } |
OpenUSD/pxr/base/tf/pyFunction.h
Line 52 in 0c7c52b
| object callable(handle<>(borrowed(PyWeakref_GetObject(weak.ptr())))); |
OpenUSD/pxr/base/tf/pyFunction.h
Line 71 in 0c7c52b
| PyObject *self = PyWeakref_GetObject(weakSelf.ptr()); |
Originally reported downstream in Fedora.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels