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 190af33 commit fd1fa03Copy full SHA for fd1fa03
Include/internal/pycore_weakref.h
@@ -45,6 +45,7 @@ extern "C" {
45
46
#define FT_CLEAR_WEAKREFS(obj, weakref_list) \
47
do { \
48
+ assert(Py_REFCNT(obj) == 0); \
49
if (weakref_list != NULL) { \
50
PyObject_ClearWeakRefs(obj); \
51
} \
Objects/classobject.c
@@ -7,7 +7,7 @@
7
#include "pycore_object.h"
8
#include "pycore_pyerrors.h"
9
#include "pycore_pystate.h" // _PyThreadState_GET()
10
-#include "pycore_weakref.h"
+#include "pycore_weakref.h" // FT_CLEAR_WEAKREFS()
11
12
13
#include "clinic/classobject.c.h"
0 commit comments