__max_stack_depth__
- :
val =__max_stack_depth__()¶ - :
old_val =__max_stack_depth__(new_val)¶ - :
old_val =__max_stack_depth__(new_val, "local")¶ Query or set the largest nesting depth of function calls.
Entering a function while the call stack is already nested more deeply than this limit is an error (‘max_stack_depth exceeded’). The default is 1024. The new value must be a whole number of at least one. With
"local"the previous value is restored when the function that made the call returns.