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
{{ message }}
Repository navigation
sqlite3 Connection maintains an unused list of weakrefs to Cursor objects #144377
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.
Activity
gh-144377: Clean up sqlite3 Connection's list of weakrefs to Cursor o…
pythongh-144377: Clean up sqlite3 Connection's list of weakrefs to Cu…
pythongh-144377: Clean up sqlite3 Connection's list of weakrefs to Cu…
erlend-aasland commentedon Feb 27, 2026
Thanks, @takluyver; happy to see this code go!