In PyThreadState_Clear() and PyInterpreterState_Clear() the code expects a "current" thread state (i.e. set by PyThreadState_Swap()) to be set. Presumably this is for the following: to ensure the GIL ...
Success and failure are opposite heads of the same coin, and like a seesaw, the two aspects of life often move to and fro. With the standard that successful people have already set, a cloud of chaos ...