Skip to content

gh-153695: Fix sqlite3.Row.__hash__ with an unhashable value#153696

Open
tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:sqlite3-row-hash
Open

gh-153695: Fix sqlite3.Row.__hash__ with an unhashable value#153696
tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:sqlite3-row-hash

Conversation

@tonghuaroot

@tonghuaroot tonghuaroot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

sqlite3.Row.__hash__ did not check the -1 error return of PyObject_Hash,
so hashing a row that holds an unhashable value raised SystemError instead of
TypeError. Check each hash and propagate the exception.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant