You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (PyList_Append(connection->cursors, weakref) <0) {
Py_CLEAR(weakref);
return0;
}
Py_DECREF(weakref);
return1;
}
There's code to periodically clear out dead weakrefs from the list, but nothing I can see that actually uses it. It looks like the use was removed in #26026.
The sqlite3 Connection object creates a list to hold weakrefs to Cursors, and each cursor registers itself in that list when it's created.
cpython/Modules/_sqlite/connection.c
Lines 289 to 293 in b625601
cpython/Modules/_sqlite/cursor.c
Lines 108 to 122 in b625601
There's code to periodically clear out dead weakrefs from the list, but nothing I can see that actually uses it. It looks like the use was removed in #26026.
Linked PRs