gh-89653: PEP 670: Convert PyWeakref_GET_OBJECT() to function (#91785)
Convert the PyWeakref_GET_OBJECT() macro to a static inline function. Add an assertion to check the argument with PyWeakref_Check(). Add a macro converting the argument to PyObject* to prevent emitting new compiler warning.
V
Victor Stinner committed
1a2b282f201073d5153e737568c833af6f1b349e
Parent: f2b4e45
Committed by GitHub <noreply@github.com>
on 4/21/2022, 2:01:47 PM