sqlite3 Connection maintains an unused list of weakrefs to Cursor objects · Issue #144377 · python/cpython · GitHub
Skip to content

sqlite3 Connection maintains an unused list of weakrefs to Cursor objects #144377

Description

@takluyver

The sqlite3 Connection object creates a list to hold weakrefs to Cursors, and each cursor registers itself in that list when it's created.

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

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions