We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bd4b39 commit 087b07cCopy full SHA for 087b07c
include/pybind11/pybind11.h
@@ -2089,15 +2089,7 @@ class gil_scoped_acquire {
2089
}
2090
2091
if (release) {
2092
- /* Work around an annoying assertion in PyThreadState_Swap */
2093
- #if defined(Py_DEBUG)
2094
- PyInterpreterState *interp = tstate->interp;
2095
- tstate->interp = nullptr;
2096
- #endif
2097
PyEval_AcquireThread(tstate);
2098
2099
- tstate->interp = interp;
2100
2101
2102
2103
inc_ref();
0 commit comments