Lines Matching defs:tstate

43     PyThreadState *tstate = _PyThreadState_GET();
44 if (tstate == NULL) {
48 return check_interp(tstate->interp) ? tstate : NULL;
495 show_warning(PyThreadState *tstate, PyObject *filename, int lineno,
509 f_stderr = _PySys_GetAttr(tstate, &_Py_ID(stderr));
568 call_show_warning(PyThreadState *tstate, PyObject *category,
574 PyInterpreterState *interp = tstate->interp;
583 show_warning(tstate, filename, lineno, text, category, sourceline);
625 warn_explicit(PyThreadState *tstate, PyObject *category, PyObject *message,
634 PyInterpreterState *interp = tstate->interp;
746 if (call_show_warning(tstate, category, text, message, filename,
823 PyThreadState *tstate = get_current_tstate();
824 if (tstate == NULL) {
827 PyInterpreterState *interp = tstate->interp;
828 PyFrameObject *f = PyThreadState_GetFrame(tstate);
866 if (_PyErr_Occurred(tstate)) {
885 else if (_PyErr_Occurred(tstate)) {
939 PyThreadState *tstate = get_current_tstate();
940 if (tstate == NULL) {
947 res = warn_explicit(tstate, category, message, filename, lineno, module, registry,
1055 PyThreadState *tstate = get_current_tstate();
1056 if (tstate == NULL) {
1068 source_line = get_source_line(tstate->interp, module_globals, lineno);
1073 returned = warn_explicit(tstate, category, message, filename, lineno, module,
1216 PyThreadState *tstate = get_current_tstate();
1217 if (tstate == NULL) {
1220 res = warn_explicit(tstate, category, message, filename, lineno,
1284 PyThreadState *tstate = get_current_tstate();
1285 if (tstate != NULL) {
1286 res = warn_explicit(tstate, category, message, filename, lineno,