Skip to main content

Context manager to increase a recursionlimit.

Project description

increase_recursionlimit

Context manager to increase the recursion limit temporarily.

from increase_recursionlimit import increase_recursionlimit

with increase_recursionlimit(10000):
    # do something that requires a higher recursion limit
    pass

If you don't pass a value to increase_recursionlimit, it will increase the recursion limit to 2^31 - 1, the maximum value allowed by Python.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

increase-recursionlimit-1.0.0.tar.gz (1.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page