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
Close
Hashes for recursion-detect-2019.4.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4427ac9fcb5dd8c457dc32e4e5f6adda372558c43e1ddca500b22aeb0946cb76 |
|
MD5 | b5f1251e9b436b869bcc2be352164bb8 |
|
BLAKE2b-256 | 868be68f367c638bb8bdaf3cef8b85af08abb6a6c2f4feb038a0bff8a5b7139e |