After `PyEval_SaveThread`, C code must avoid interacting with Python objects or calling most Python C API functions. Developers are responsible for implementing C-level locking for any shared data to prevent race conditions in their native code.
Open the full topic