We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e839f46 commit 266c2e7Copy full SHA for 266c2e7
1 file changed
Objects/weakrefobject.c
@@ -576,7 +576,8 @@ _proxy_unwrap(PyObject **op, int *did_incref)
576
static PyObject * \
577
method(PyObject *proxy) { \
578
int proxy_incref = 0; \
579
- UNWRAP(proxy); \
+ if (!_proxy_unwrap(&proxy, &proxy_incref)) \
580
+ return NULL; \
581
PyObject* res = generic(proxy); \
582
Py_DECREF(proxy); \
583
return res; \
@@ -630,7 +631,8 @@ _proxy_unwrap(PyObject **op, int *did_incref)
630
631
632
method(PyObject *proxy, PyObject *Py_UNUSED(ignored)) { \
633
634
635
636
PyObject* res = PyObject_CallMethodNoArgs(proxy, &_Py_ID(SPECIAL)); \
637
638
0 commit comments