'see sys.setrecursionlimit()'

def opt_recursionlimit(self, arg):

    try:
        sys.setrecursionlimit(int(arg))
    except (TypeError, ValueError):
        raise usage.UsageError('argument    to    recursionlimit    must    be    an    integer')
    else:
        self['recursionlimit'] = int(arg)
