gh-153695: Fix sqlite3.Row.__hash__ with an unhashable value#153696
Conversation
|
Thanks @tonghuaroot for the PR, and @sobolevn for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
GH-153723 is a backport of this pull request to the 3.15 branch. |
|
Sorry, @tonghuaroot and @sobolevn, I could not cleanly backport this to |
|
GH-153724 is a backport of this pull request to the 3.14 branch. |
|
@tonghuaroot can you please handle the 3.13 backport? |
|
GH-153725 is a backport of this pull request to the 3.13 branch. |
|
Done, the 3.13 backport is #153725. miss-islington hit a conflict because 3.13 still has the older |
sqlite3.Row.__hash__did not check the-1error return ofPyObject_Hash,so hashing a row that holds an unhashable value raised
SystemErrorinstead ofTypeError. Check each hash and propagate the exception.