Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-144424: Clean up dead weakrefs to sqlite3 Blob objects#144435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
takluyver wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromtakluyver:sqlite-cleanup-blob-weakrefs

Conversation

@takluyver
Copy link
Contributor

@takluyvertakluyver commentedFeb 3, 2026
edited by bedevere-appbot
Loading

Usingconn.blobopen() puts a weakref to the new blob object into a list, but dead weakrefs are never cleaned up.

This adds a check to go through and clean up dead weakrefs on every 200th blob opened, closely based on the code I removed in#144378 doing the same thing for Cursor weakrefs.

Closes#144424.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@berkerpeksagberkerpeksagAwaiting requested review from berkerpeksagberkerpeksag is a code owner

@erlend-aaslanderlend-aaslandAwaiting requested review from erlend-aaslanderlend-aasland is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

sqlite3 Blob objects leave behind weakrefs which are never cleaned up

1 participant

@takluyver

[8]ページ先頭

©2009-2026 Movatter.jp