-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-42064: Move sqlite3
exceptions to global state, part 1 of 2
#26745
Conversation
@encukou Whenever you have time, would you mind reviewing this as well? I've split this operation in two; moving all exceptions was too large a diff. |
sqlite3
exceptions to global state, part 1sqlite3
exceptions to global state, part 1 of 2
Looks OK at first glance but I'll do a review next week (after 3.10 beta 3) |
3df4ccc
to
4fe9d98
Compare
I just remembered that all the connection object keeps borrowed references to all the |
f36e9e6
to
c935f31
Compare
I see the connection type is created with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes themselves look OK!
Yes, I've thought about this. I think updating them to strong references is a good idea. |
Thanks for reviewing, Petr! |
Also adds a test to verify the (borrowed) exceptions in
sqlite3.Connection
.https://bugs.python.org/issue42064
Automerge-Triggered-By: GH:encukou