bpo-42064: Add module backref to sqlite3 callback context#28242
bpo-42064: Add module backref to sqlite3 callback context#28242encukou merged 4 commits intopython:mainfrom
sqlite3 callback context#28242Conversation
|
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 |
encukou
left a comment
There was a problem hiding this comment.
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