Lines Matching refs:tstate
28 PyThreadState *tstate = _PyThreadState_GET(); in null_error() local
29 if (!_PyErr_Occurred(tstate)) { in null_error()
30 _PyErr_SetString(tstate, PyExc_SystemError, in null_error()
99 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_LengthHint() local
100 assert(_PyErr_Occurred(tstate)); in PyObject_LengthHint()
101 if (!_PyErr_ExceptionMatches(tstate, PyExc_TypeError)) { in PyObject_LengthHint()
104 _PyErr_Clear(tstate); in PyObject_LengthHint()
120 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_LengthHint() local
121 if (_PyErr_ExceptionMatches(tstate, PyExc_TypeError)) { in PyObject_LengthHint()
122 _PyErr_Clear(tstate); in PyObject_LengthHint()
801 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_Format() local
802 if (!_PyErr_Occurred(tstate)) { in PyObject_Format()
803 _PyErr_Format(tstate, PyExc_TypeError, in PyObject_Format()
1491 PyThreadState *tstate = _PyThreadState_GET(); in PyNumber_AsSsize_t() local
1492 runerr = _PyErr_Occurred(tstate); in PyNumber_AsSsize_t()
1501 _PyErr_Clear(tstate); in PyNumber_AsSsize_t()
1517 _PyErr_Format(tstate, err, in PyNumber_AsSsize_t()
2167 PyThreadState *tstate = _PyThreadState_GET(); in PySequence_Fast() local
2168 if (_PyErr_ExceptionMatches(tstate, PyExc_TypeError)) { in PySequence_Fast()
2169 _PyErr_SetString(tstate, PyExc_TypeError, m); in PySequence_Fast()
2427 PyThreadState *tstate = _PyThreadState_GET(); in method_output_as_list() local
2428 if (_PyErr_ExceptionMatches(tstate, PyExc_TypeError)) { in method_output_as_list()
2429 _PyErr_Format(tstate, PyExc_TypeError, in method_output_as_list()
2584 PyThreadState *tstate = _PyThreadState_GET(); in check_class() local
2585 if (!_PyErr_Occurred(tstate)) { in check_class()
2586 _PyErr_SetString(tstate, PyExc_TypeError, error); in check_class()
2632 object_recursive_isinstance(PyThreadState *tstate, PyObject *inst, PyObject *cls) in object_recursive_isinstance() argument
2649 if (_Py_EnterRecursiveCall(tstate, " in __instancecheck__")) { in object_recursive_isinstance()
2656 r = object_recursive_isinstance(tstate, inst, item); in object_recursive_isinstance()
2662 _Py_LeaveRecursiveCall(tstate); in object_recursive_isinstance()
2668 if (_Py_EnterRecursiveCall(tstate, " in __instancecheck__")) { in object_recursive_isinstance()
2674 _Py_LeaveRecursiveCall(tstate); in object_recursive_isinstance()
2685 else if (_PyErr_Occurred(tstate)) { in object_recursive_isinstance()
2697 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_IsInstance() local
2698 return object_recursive_isinstance(tstate, inst, cls); in PyObject_IsInstance()
2723 object_issubclass(PyThreadState *tstate, PyObject *derived, PyObject *cls) in object_issubclass() argument
2738 if (_Py_EnterRecursiveCall(tstate, " in __subclasscheck__")) { in object_issubclass()
2745 r = object_issubclass(tstate, derived, item); in object_issubclass()
2750 _Py_LeaveRecursiveCall(tstate); in object_issubclass()
2757 if (_Py_EnterRecursiveCall(tstate, " in __subclasscheck__")) { in object_issubclass()
2762 _Py_LeaveRecursiveCall(tstate); in object_issubclass()
2770 else if (_PyErr_Occurred(tstate)) { in object_issubclass()
2782 PyThreadState *tstate = _PyThreadState_GET(); in PyObject_IsSubclass() local
2783 return object_issubclass(tstate, derived, cls); in PyObject_IsSubclass()
2876 PyThreadState *tstate = _PyThreadState_GET(); in PyIter_Next() local
2877 if (_PyErr_Occurred(tstate) in PyIter_Next()
2878 && _PyErr_ExceptionMatches(tstate, PyExc_StopIteration)) in PyIter_Next()
2880 _PyErr_Clear(tstate); in PyIter_Next()