]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44991: Make GIL handling more explicit in `sqlite3` callbacks (GH-27934)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Tue, 31 Aug 2021 12:18:43 +0000 (14:18 +0200)
committerGitHub <noreply@github.com>
Tue, 31 Aug 2021 12:18:43 +0000 (05:18 -0700)
commit001ef4600f5ab2e1d7825ddbc0f253377c234d7e
treeb7761c7fd6e81f80d32671c9750f075c3e03e5e7
parentedae42f99f8153b92ccf365dbd1c2fa954f913b4
bpo-44991: Make GIL handling more explicit in `sqlite3` callbacks (GH-27934)

- acquire the GIL at the very start[1]
- release the GIL at the very end

[1] The trace callback performs a sanity check before acquiring the GIL

Automerge-Triggered-By: GH:encukou
Modules/_sqlite/connection.c