Batuhan Taskaya <[email protected]> added the comment:
By the noticed something that looks kind of weird, not sure if it is
intentional or not but shouldn't this be self instead of gen
static void
gen_dealloc(PyGenObject *gen)
{
PyObject *self = (PyObject *) gen;
<<<<
_PyObject_GC_UNTRACK(gen);
<<<<
if (gen->gi_weakreflist != NULL)
PyObject_ClearWeakRefs(self);
_PyObject_GC_TRACK(self);
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40244>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com