Lines Matching refs:tstate

28     PyThreadState *tstate = _PyThreadState_GET();
29 if (!_PyErr_Occurred(tstate)) {
30 _PyErr_SetString(tstate, PyExc_SystemError,
98 PyThreadState *tstate = _PyThreadState_GET();
99 assert(_PyErr_Occurred(tstate));
100 if (!_PyErr_ExceptionMatches(tstate, PyExc_TypeError)) {
103 _PyErr_Clear(tstate);
119 PyThreadState *tstate = _PyThreadState_GET();
120 if (_PyErr_ExceptionMatches(tstate, PyExc_TypeError)) {
121 _PyErr_Clear(tstate);
803 PyThreadState *tstate = _PyThreadState_GET();
804 if (!_PyErr_Occurred(tstate)) {
805 _PyErr_Format(tstate, PyExc_TypeError,
1480 PyThreadState *tstate = _PyThreadState_GET();
1481 runerr = _PyErr_Occurred(tstate);
1490 _PyErr_Clear(tstate);
1506 _PyErr_Format(tstate, err,
2160 PyThreadState *tstate = _PyThreadState_GET();
2161 if (_PyErr_ExceptionMatches(tstate, PyExc_TypeError)) {
2162 _PyErr_SetString(tstate, PyExc_TypeError, m);
2420 PyThreadState *tstate = _PyThreadState_GET();
2421 if (_PyErr_ExceptionMatches(tstate, PyExc_TypeError)) {
2422 _PyErr_Format(tstate, PyExc_TypeError,
2570 PyThreadState *tstate = _PyThreadState_GET();
2571 if (!_PyErr_Occurred(tstate)) {
2572 _PyErr_SetString(tstate, PyExc_TypeError, error);
2617 object_recursive_isinstance(PyThreadState *tstate, PyObject *inst, PyObject *cls)
2636 if (_Py_EnterRecursiveCallTstate(tstate, " in __instancecheck__")) {
2643 r = object_recursive_isinstance(tstate, inst, item);
2649 _Py_LeaveRecursiveCallTstate(tstate);
2655 if (_Py_EnterRecursiveCallTstate(tstate, " in __instancecheck__")) {
2661 _Py_LeaveRecursiveCallTstate(tstate);
2672 else if (_PyErr_Occurred(tstate)) {
2684 PyThreadState *tstate = _PyThreadState_GET();
2685 return object_recursive_isinstance(tstate, inst, cls);
2710 object_issubclass(PyThreadState *tstate, PyObject *derived, PyObject *cls)
2728 if (_Py_EnterRecursiveCallTstate(tstate, " in __subclasscheck__")) {
2735 r = object_issubclass(tstate, derived, item);
2740 _Py_LeaveRecursiveCallTstate(tstate);
2747 if (_Py_EnterRecursiveCallTstate(tstate, " in __subclasscheck__")) {
2752 _Py_LeaveRecursiveCallTstate(tstate);
2760 else if (_PyErr_Occurred(tstate)) {
2772 PyThreadState *tstate = _PyThreadState_GET();
2773 return object_issubclass(tstate, derived, cls);
2866 PyThreadState *tstate = _PyThreadState_GET();
2867 if (_PyErr_Occurred(tstate)
2868 && _PyErr_ExceptionMatches(tstate, PyExc_StopIteration))
2870 _PyErr_Clear(tstate);