mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
parent
7bd4b39754
commit
087b07c8b7
@ -2089,15 +2089,7 @@ public:
|
||||
}
|
||||
|
||||
if (release) {
|
||||
/* Work around an annoying assertion in PyThreadState_Swap */
|
||||
#if defined(Py_DEBUG)
|
||||
PyInterpreterState *interp = tstate->interp;
|
||||
tstate->interp = nullptr;
|
||||
#endif
|
||||
PyEval_AcquireThread(tstate);
|
||||
#if defined(Py_DEBUG)
|
||||
tstate->interp = interp;
|
||||
#endif
|
||||
}
|
||||
|
||||
inc_ref();
|
||||
|
Loading…
Reference in New Issue
Block a user