Lines Matching defs:tstate
12 _PyStack_UnpackDict(PyThreadState *tstate,
22 null_error(PyThreadState *tstate)
24 if (!_PyErr_Occurred(tstate)) {
25 _PyErr_SetString(tstate, PyExc_SystemError,
33 _Py_CheckFunctionResult(PyThreadState *tstate, PyObject *callable,
39 if (!_PyErr_Occurred(tstate)) {
41 _PyErr_Format(tstate, PyExc_SystemError,
45 _PyErr_Format(tstate, PyExc_SystemError,
57 if (_PyErr_Occurred(tstate)) {
62 tstate, PyExc_SystemError,
67 tstate, PyExc_SystemError,
85 PyThreadState *tstate = _PyThreadState_GET();
87 if (!_PyErr_Occurred(tstate)) {
95 if (_PyErr_Occurred(tstate)) {
117 _PyObject_FastCallDictTstate(PyThreadState *tstate, PyObject *callable,
126 assert(!_PyErr_Occurred(tstate));
136 return _PyObject_MakeTpCall(tstate, callable, args, nargs, kwargs);
146 newargs = _PyStack_UnpackDict(tstate,
156 return _Py_CheckFunctionResult(tstate, callable, res, NULL);
164 PyThreadState *tstate = _PyThreadState_GET();
165 return _PyObject_FastCallDictTstate(tstate, callable, args, nargsf, kwargs);
170 _PyObject_MakeTpCall(PyThreadState *tstate, PyObject *callable,
182 _PyErr_Format(tstate, PyExc_TypeError,
212 if (_Py_EnterRecursiveCallTstate(tstate, " while calling a Python object") == 0)
216 _Py_LeaveRecursiveCallTstate(tstate);
224 return _Py_CheckFunctionResult(tstate, callable, result, NULL);
236 _PyVectorcall_Call(PyThreadState *tstate, vectorcallfunc func,
251 args = _PyStack_UnpackDict(tstate,
261 return _Py_CheckFunctionResult(tstate, callable, result, NULL);
268 PyThreadState *tstate = _PyThreadState_GET();
274 _PyErr_Format(tstate, PyExc_TypeError,
284 _PyErr_Format(tstate, PyExc_TypeError,
290 return _PyVectorcall_Call(tstate, func, callable, tuple, kwargs);
298 PyThreadState *tstate = _PyThreadState_GET();
299 return _PyObject_VectorcallTstate(tstate, callable,
307 PyThreadState *tstate = _PyThreadState_GET();
308 return _PyObject_FastCallTstate(tstate, func, args, nargs);
313 _PyObject_Call(PyThreadState *tstate, PyObject *callable,
322 assert(!_PyErr_Occurred(tstate));
328 return _PyVectorcall_Call(tstate, vector_func, callable, args, kwargs);
333 _PyErr_Format(tstate, PyExc_TypeError,
339 if (_Py_EnterRecursiveCallTstate(tstate, " while calling a Python object")) {
345 _Py_LeaveRecursiveCallTstate(tstate);
347 return _Py_CheckFunctionResult(tstate, callable, result, NULL);
354 PyThreadState *tstate = _PyThreadState_GET();
355 return _PyObject_Call(tstate, callable, args, kwargs);
362 PyThreadState *tstate = _PyThreadState_GET();
363 return _PyObject_Call(tstate, callable, args, kwargs);
374 PyThreadState *tstate = _PyThreadState_GET();
376 return _PyObject_VectorcallTstate(tstate, func, args, nargsf, NULL);
390 PyThreadState *tstate = _PyThreadState_GET();
393 return _PyEval_Vector(tstate, f, NULL, stack, nargs, kwnames);
396 return _PyEval_Vector(tstate, f, f->func_globals, stack, nargs, kwnames);
408 PyThreadState *tstate = _PyThreadState_GET();
413 assert(!_PyErr_Occurred(tstate));
417 _PyErr_SetString(tstate, PyExc_TypeError,
423 _PyErr_SetString(tstate, PyExc_TypeError,
429 return _PyObject_FastCallDictTstate(tstate, callable, NULL, 0, kwargs);
432 return _PyObject_Call(tstate, callable, args, kwargs);
440 PyThreadState *tstate = _PyThreadState_GET();
441 assert(!_PyErr_Occurred(tstate));
443 return _PyObject_CallNoArgsTstate(tstate, callable);
446 _PyErr_SetString(tstate, PyExc_TypeError,
450 return _PyObject_Call(tstate, callable, args, NULL);
456 _PyObject_Call_Prepend(PyThreadState *tstate, PyObject *callable,
482 PyObject *result = _PyObject_FastCallDictTstate(tstate, callable,
495 _PyObject_CallFunctionVa(PyThreadState *tstate, PyObject *callable,
505 return null_error(tstate);
509 return _PyObject_CallNoArgsTstate(tstate, callable);
530 result = _PyObject_VectorcallTstate(tstate, callable,
536 result = _PyObject_VectorcallTstate(tstate, callable,
555 PyThreadState *tstate = _PyThreadState_GET();
558 result = _PyObject_CallFunctionVa(tstate, callable, format, va, 0);
573 PyThreadState *tstate = _PyThreadState_GET();
576 result = _PyObject_CallFunctionVa(tstate, callable, format, va, 0);
586 PyThreadState *tstate = _PyThreadState_GET();
590 PyObject *result = _PyObject_CallFunctionVa(tstate, callable, format, va, 1);
598 callmethod(PyThreadState *tstate, PyObject* callable, const char *format, va_list va, int is_size_t)
602 _PyErr_Format(tstate, PyExc_TypeError,
608 return _PyObject_CallFunctionVa(tstate, callable, format, va, is_size_t);
614 PyThreadState *tstate = _PyThreadState_GET();
617 return null_error(tstate);
627 PyObject *retval = callmethod(tstate, callable, format, va, 0);
641 PyThreadState *tstate = _PyThreadState_GET();
643 return null_error(tstate);
653 PyObject *retval = callmethod(tstate, callable, format, va, 0);
665 PyThreadState *tstate = _PyThreadState_GET();
667 return null_error(tstate);
677 PyObject *retval = callmethod(tstate, callable, format, va, 1);
689 PyThreadState *tstate = _PyThreadState_GET();
691 return null_error(tstate);
701 PyObject *retval = callmethod(tstate, callable, format, va, 0);
709 PyObject * _PyObject_CallMethodFormat(PyThreadState *tstate, PyObject *callable,
714 PyObject *retval = callmethod(tstate, callable, format, va, 0);
724 PyThreadState *tstate = _PyThreadState_GET();
726 return null_error(tstate);
736 PyObject *retval = callmethod(tstate, callable, format, va, 1);
748 PyThreadState *tstate = _PyThreadState_GET();
750 return null_error(tstate);
760 PyObject *retval = callmethod(tstate, callable, format, va, 1);
771 object_vacall(PyThreadState *tstate, PyObject *base,
782 return null_error(tstate);
819 result = _PyObject_VectorcallTstate(tstate, callable, stack, nargs, NULL);
836 PyThreadState *tstate = _PyThreadState_GET();
855 PyObject *result = _PyObject_VectorcallTstate(tstate, callable,
865 PyThreadState *tstate = _PyThreadState_GET();
867 return null_error(tstate);
879 PyObject *result = object_vacall(tstate, obj, callable, vargs);
890 PyThreadState *tstate = _PyThreadState_GET();
892 return null_error(tstate);
909 PyObject *result = object_vacall(tstate, obj, callable, vargs);
920 PyThreadState *tstate = _PyThreadState_GET();
925 result = object_vacall(tstate, NULL, callable, vargs);
959 _PyStack_UnpackDict(PyThreadState *tstate,
973 _PyErr_NoMemory(tstate);
980 _PyErr_NoMemory(tstate);
1020 _PyErr_SetString(tstate, PyExc_TypeError,