bpo-44991: Make GIL handling more explicit in sqlite3 callbacks#27934
bpo-44991: Make GIL handling more explicit in sqlite3 callbacks#27934miss-islington merged 3 commits intopython:mainfrom
sqlite3 callbacks#27934Conversation
Exception: in the trace callback, do a sanity check before attempting to hold the GIL.
|
FYI, I'll normalise the callback names in a separate PR. |
|
|
- since _destructor is a callback, wrap it in GIL lock/unlock - remove GIL lock/unlock from create_callback_context()
Yes, that's cleaner. Thanks! See d42eb38. PTAL :) |
|
Thanks, and thank you for reviewing! |
|
@erlend-aasland: Status check is done, and it's a failure ❌ . |
|
@erlend-aasland: Status check is done, and it's a success ✅ . |
[1] The trace callback performs a sanity check before acquiring the GIL
https://bugs.python.org/issue44991
Automerge-Triggered-By: GH:encukou