This macro calls PyWeakref_CheckRef() last since that can involve a function call; this makes it more likely that the function call will be avoided.
_
_
_
_
_
_
_
_
_
_
PyWeakReference is the base struct for the Python ReferenceType, ProxyType, and CallableProxyType.
Mirror weakrefobject.h
Weak references objects for Python.