recursionerror maximum recursion depth exceeded in comparison code example Example: recursionerror maximum recursion depth sys.setrecursionlimit(1500)