Message415284
> All callbacks triggered from external libraries must protect Python C API calls. You may call it offending, but that is the reality; a callback may trigger at any point in time, so we need to make sure the GIL is held before calling any Py API. That is also the case for the destructor.
Sure but I'm suggesting sidestepping and not using the destructor_callback entirely. You can DECREF the callbacks manually in connection_close() after calling sqlite3_close_v2(). Doing this makes sense to me since the destructor may be called under special conditions. |
|
Date |
User |
Action |
Args |
2022-03-15 19:36:21 | hydroflask | set | recipients:
+ hydroflask, vstinner, pablogsal, erlendaasland |
2022-03-15 19:36:21 | hydroflask | set | messageid: <1647372981.44.0.157590334021.issue47019@roundup.psfhosted.org> |
2022-03-15 19:36:21 | hydroflask | link | issue47019 messages |
2022-03-15 19:36:21 | hydroflask | create | |
|