detect recursion
Project description
Install
$ [sudo] pip install recursion-detect
Functions
function | description |
---|---|
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
readme-md - README.md generator
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-2018.11.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80e9143bcf2ea92654f80fe9e461455d6606d4a204d78da8abef60750465ef0a |
|
MD5 | 22ad02c45874bdea22bc2612ad6016ff |
|
BLAKE2b-256 | ab206c1de8d807727239dd159f56e0b87f8998a4288522f9f92079bd080a7609 |
Close
Hashes for recursion_detect-2018.11.20-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb58b5391f02d2031fd2a069e6975ef494f5494cd5837d0d099dd6834a5fd107 |
|
MD5 | 2ee8009b68aa3ea6878af0eb4f2d0160 |
|
BLAKE2b-256 | 15d86e65a594b31cefdc26cbd2ab3b4228e687f79ea5d4baea2aefdf80cdb2d3 |