Message356568
Thanks for making the issue clear.
My understanding is that,
all C++ destructors have to check Python interpreter before Py_DECREF,
like this.
``` cplusplus
~something() {
// PyThreadState *_tstate = PyThreadState_GET();
PyThreadState *_tstate = _PyThreadState_UncheckedGet();
if (_tstate) {
Py_DECREF(somelist);
}
}
```
Is this right? |
|
Date |
User |
Action |
Args |
2019-11-14 03:07:48 | ysnt27 | set | recipients:
+ ysnt27, ronaldoussoren |
2019-11-14 03:07:48 | ysnt27 | set | messageid: <1573700868.06.0.0407977339802.issue38609@roundup.psfhosted.org> |
2019-11-14 03:07:48 | ysnt27 | link | issue38609 messages |
2019-11-14 03:07:47 | ysnt27 | create | |
|