bpo-42064: Pass module state to sqlite3 UDF callbacks#27456
bpo-42064: Pass module state to sqlite3 UDF callbacks#27456miss-islington merged 6 commits intopython:mainfrom
sqlite3 UDF callbacks#27456Conversation
|
A couple of questions, @encukou:
|
There are very few funcitons in the C-API that you can call without the GIL held; usually they're the ones needed before a GIL is created. For |
Yes, I've seen it ;) But then why does this PR work as it is? (That is, without the GIL) (FYI: I'll update the PR with GIL wrappers soon) |
I assume it's because you're not using multiple threads. |
Ah, right. Thanks! I've updated the PR. PTAL :) |
encukou
left a comment
There was a problem hiding this comment.
I found some more questionable uses of the GIL in existing code (see the issue). But let's not block this PR; it is an improvement.
|
Thanks for reviewing! |
https://bugs.python.org/issue42064
Automerge-Triggered-By: GH:encukou