On this page
  1. sys.getrecursionlimit
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

sys.getrecursionlimit

Prev: sys.getprofile | Up: sys | Next: sys.getrefcount
Rel: sys.activate_stack_trampoline, sys.addaudithook, sys.audit, sys.breakpointhook
Ref: docs.python.org — sys.getrecursionlimit
Tags: #public #python3 #stdlib #sys


Import

import sys
from sys import getrecursionlimit

Signature & Overview

sys.getrecursionlimit()

Return the current value of the recursion limit.

Usage

import sys

limit = sys.getrecursionlimit()
assert limit >= 100

Gotchas

REPL Inspect

from sys import getrecursionlimit
help(getrecursionlimit)

Linked from

Related notes