Lines Matching defs:depth
379 "Set the maximum depth of the Python interpreter stack to n.\n"
408 "set_coroutine_origin_tracking_depth($module, /, depth)\n"
413 "Coroutine objects will track \'depth\' frames of traceback information\n"
416 "Set a depth of 0 to disable.");
422 sys_set_coroutine_origin_tracking_depth_impl(PyObject *module, int depth);
428 static const char * const _keywords[] = {"depth", NULL};
431 int depth;
437 depth = _PyLong_AsInt(args[0]);
438 if (depth == -1 && PyErr_Occurred()) {
441 return_value = sys_set_coroutine_origin_tracking_depth_impl(module, depth);
501 "The recursion limit is the maximum depth of the Python interpreter\n"
844 "_getframe($module, depth=0, /)\n"
849 "If optional integer depth is given, return the frame object that many\n"
851 "stack, ValueError is raised. The default for depth is zero, returning\n"
861 sys__getframe_impl(PyObject *module, int depth);
867 int depth = 0;
875 depth = _PyLong_AsInt(args[0]);
876 if (depth == -1 && PyErr_Occurred()) {
880 return_value = sys__getframe_impl(module, depth);