SIGN IN SIGN UP

Improve faulthandler.enable(all_threads=True)

faulthandler.enable(all_threads=True) dumps the tracebacks even if it is not
possible to get the state of the current thread

Create also the get_thread_state() subfunction to factorize the code.
V
Victor Stinner committed
a4de6d885f08d4aabdc606d7c38341323e5ef1ab
Parent: c790a53