-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-42064: Add module backref to sqlite3
callback context
#28242
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: Add module backref to sqlite3
callback context
#28242
Conversation
FYI, first attempt is in a2d3eae |
🤖 New build scheduled with the buildbot fleet by @erlend-aasland for commit 9150dfc 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
The |
FYI, the windows and asan CI failures are unrelated. |
Whoa, that's certainly a big PR. |
Did you filter out the auto-generated clinic changes? (You can use the
|
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.
This looks good, thanks!
One nitpick: it might not be not immediately clear that create_callback_context
needs the defining class (i.e. exactly the Connection
class, not a subclass which could have a different module). Do you want to add a comment on that?
Thanks for reviewing :)
Yes, that's a good idea. |
PTAL |
|
Make sure that the module state will always outlive the callback context
by holding a strong reference to the module object in the callback
context.
https://bugs.python.org/issue42064