Erlend E. Aasland <erlend.aasl...@innova.no> added the comment:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue47019> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com