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.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfeb190593e9e6563d8f33ab5ff972a9e3b2cd68b81bb79fb4cba9cdae17249a |
|
MD5 | 8009343c61e24c26ea96d2bd02f232ee |
|
BLAKE2b-256 | 4fef2bf8828fb01a2f39fc096e88265a1eee9a6d48d180e830f5cca0d295a75a |