mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
gh-105927: Deprecate PyWeakref_GetObject() function (#106006)
Deprecate PyWeakref_GetObject() and PyWeakref_GET_OBJECT() functions.
This commit is contained in:
parent
dac3d389e7
commit
c075a1974b
7 changed files with 33 additions and 4 deletions
|
|
@ -74,11 +74,17 @@ as much as it can.
|
|||
except when it cannot be destroyed before the last usage of the borrowed
|
||||
reference.
|
||||
|
||||
.. deprecated-removed:: 3.13 3.15
|
||||
Use :c:func:`PyWeakref_GetRef` instead.
|
||||
|
||||
|
||||
.. c:function:: PyObject* PyWeakref_GET_OBJECT(PyObject *ref)
|
||||
|
||||
Similar to :c:func:`PyWeakref_GetObject`, but does no error checking.
|
||||
|
||||
.. deprecated-removed:: 3.13 3.15
|
||||
Use :c:func:`PyWeakref_GetRef` instead.
|
||||
|
||||
|
||||
.. c:function:: void PyObject_ClearWeakRefs(PyObject *object)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue