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.
tp_clear
1 parent c05db69 commit 23a9664Copy full SHA for 23a9664
Modules/_curses_panel.c
@@ -438,8 +438,7 @@ PyCursesPanel_Clear(PyObject *op)
438
Py_CLEAR(extra);
439
if (set_panel_userptr(self->pan, NULL) == ERR) {
440
curses_panel_panel_set_error(self, "set_panel_userptr", NULL);
441
- // Do not add a PyErr_FormatUnraisable() because the GC
442
- // is responsible for handling exceptions in tp_clear.
+ PyErr_FormatUnraisable("Exception ignored in tp_clear of %s", op);
443
}
444
445
// do NOT clear self->wo yet as there is no cycle to break with it
0 commit comments