detect recursion
Project description
Installation
$ [sudo] pip install recursion-detect
Functions
function | __doc__ |
---|---|
recursion_detect.depth() |
return recursion depth. 0 if no recursion |
Examples
>>> import recursion_detect
>>> def recur():
depth = recursion_detect.depth()
print("depth = %s" % depth)
if depth==5:
return
recur()
>>> recur()
0
1
2
3
4
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for recursion-detect-2019.3.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27e09ccfd5019c89b5589730347bb4be1012d9bae88febf7b85e73f1897d1950 |
|
MD5 | cb3ad3f2cb9bfad53f19fa678b69e6a0 |
|
BLAKE2b-256 | 1d40a32d071d5c1bec32d0f19b2a0c427c13b7b4ac727bd95cb4d32959c53679 |
Close
Hashes for recursion_detect-2019.3.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55990411d0542994b29d849e9e128e4295f7f88e290ca7daed0747acae7678ee |
|
MD5 | 9b306cfb47f4de8d2d1d3db7add4c5ed |
|
BLAKE2b-256 | 6adcc7623ab5afa5dda7b6e24852e43696e9144d24404d4ed13868b0c0100b65 |