A new API for ensuring/releasing thread states

  1. I don’t think an error message is useful. Failures should be truly exceptional. A return code is enough IMHO.
  2. I would expect void PyThreadState_Release(PyInterpreterState*) for consistency, but perhaps that is not necessary.
1 Like