detect recursion
Project description
Installation
$ [sudo] pip install recursion-detect
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-2020.12.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84927a02217104d2eaeef7c803544aef7bfcce8ffb150541865fe4a99b27079c |
|
MD5 | 12b4f1d79d139c3649b2eb0951489a28 |
|
BLAKE2b-256 | 21f4143ac0be5492f240c2e0035a1e997853bcb59a7766b28130d245120eb9e0 |