Python | sys.getrecursionlimit() method Last Updated : 07 Aug, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report This sys module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. It provides information about constants, functions and methods of python interpreter. It can be used for manipulating Python runtime environment. sys.getrecursionlimit() method is used to find the current recursion limit of the interpreter or to find the maximum depth of the Python interpreter stack. This limit prevents any program from getting into infinite recursion, Otherwise infinite recursion will lead to overflow of the C stack and crash the Python. Syntax: sys.getrecursionlimit() Parameter: This method accepts no parameter. Return Value: This method returns the current value of the recursion limit of python interpreter. Example #1 : Python3 1== # Python program to explain sys.getrecursionlimit() method # Importing sys module import sys # Using sys.getrecursionlimit() method limit = sys.getrecursionlimit() # Print the result print(limit) Output: 1000 Comment More infoAdvertise with us Next Article Python | sys.getrecursionlimit() method R Rajnis09 Follow Improve Article Tags : Python python-modules Practice Tags : python Similar Reads Python | sys.getswitchinterval() method This sys module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. It provides information about constants, functions and methods of python interpreter. It can be used for manipulating Python runtime environment. sys. 1 min read Python | sys.getallocatedblocks() method This sys module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. It provides information about constants, functions and methods of python interpreter. It can be used for manipulating Python runtime environment. sys. 1 min read Python | os.getsid() method OS module in Python provides functions for interacting with the operating system. OS comes under Pythonâs standard utility modules. This module provides a portable way of using operating system dependent functionality. All functions in os module raise OSError in the case of invalid or inaccessible f 2 min read Python | Decimal is_finite() method Decimal#is_finite() : is_finite() is a Decimal class method which checks whether the Decimal value is finite value. Syntax: Decimal.is_finite() Parameter: Decimal values Return: true - if the Decimal value is finite value; otherwise false Code #1 : Example for is_finite() method Python3 # Python Pro 2 min read Python List methods Python list methods are built-in functions that allow us to perform various operations on lists, such as adding, removing, or modifying elements. In this article, weâll explore all Python list methods with a simple example.List MethodsLet's look at different list methods in Python:append(): Adds an 3 min read Like