Lines Matching defs:tstate

119     PyThreadState *tstate = _PyThreadState_GET();
120 PyObject *v = _PySys_GetAttr(tstate, &_Py_ID(ps1));
125 v = _PySys_GetAttr(tstate, &_Py_ID(ps2));
194 PyThreadState *tstate = _PyThreadState_GET();
198 v = _PySys_GetAttr(tstate, &_Py_ID(stdin));
207 v = _PySys_GetAttr(tstate, &_Py_ID(ps1));
220 w = _PySys_GetAttr(tstate, &_Py_ID(ps2));
736 PyThreadState *tstate = _PyThreadState_GET();
737 PyObject *sys_stderr = _PySys_GetAttr(tstate, &_Py_ID(stderr));
777 _PyErr_PrintEx(PyThreadState *tstate, int set_sys_last_vars)
783 _PyErr_Fetch(tstate, &exception, &v, &tb);
788 _PyErr_NormalizeException(tstate, &exception, &v, &tb);
801 _PyErr_Clear(tstate);
804 _PyErr_Clear(tstate);
807 _PyErr_Clear(tstate);
810 hook = _PySys_GetAttr(tstate, &_Py_ID(excepthook));
811 if (_PySys_Audit(tstate, "sys.excepthook", "OOOO", hook ? hook : Py_None,
831 _PyErr_Fetch(tstate, &exception2, &v2, &tb2);
832 _PyErr_NormalizeException(tstate, &exception2, &v2, &tb2);
867 _PyErr_Print(PyThreadState *tstate)
869 _PyErr_PrintEx(tstate, 1);
875 PyThreadState *tstate = _PyThreadState_GET();
876 _PyErr_PrintEx(tstate, set_sys_last_vars);
1573 PyThreadState *tstate = _PyThreadState_GET();
1574 PyObject *file = _PySys_GetAttr(tstate, &_Py_ID(stderr));
1667 PyThreadState *tstate = _PyThreadState_GET();
1668 f = _PySys_GetAttr(tstate, &_Py_ID(stderr));
1676 f = _PySys_GetAttr(tstate, &_Py_ID(stdout));
1689 run_eval_code_obj(PyThreadState *tstate, PyCodeObject *co, PyObject *globals, PyObject *locals)
1708 tstate->interp->builtins) < 0)
1715 if (!v && _PyErr_Occurred(tstate) == PyExc_KeyboardInterrupt) {
1725 PyThreadState *tstate = _PyThreadState_GET();
1730 if (_PySys_Audit(tstate, "exec", "O", co) < 0) {
1735 PyObject *v = run_eval_code_obj(tstate, co, globals, locals);
1744 PyThreadState *tstate = _PyThreadState_GET();
1773 v = run_eval_code_obj(tstate, co, globals, locals);