https://github.com/andrewpetrochenkov/recursion-detect.py
:snake: detect recursion
https://github.com/andrewpetrochenkov/recursion-detect.py
python
Last synced: 3 months ago
JSON representation
:snake: detect recursion
- Host: GitHub
- URL: https://github.com/andrewpetrochenkov/recursion-detect.py
- Owner: andrewpetrochenkov
- License: unlicense
- Created: 2018-08-18T23:12:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T21:21:13.000Z (over 4 years ago)
- Last Synced: 2025-02-26T09:42:00.838Z (3 months ago)
- Topics: python
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://pypi.org/project/recursion-detect/)
[](https://unlicense.org/)
[](https://github.com/andrewp-as-is/recursion-detect.py/actions)### Installation
```bash
$ [sudo] pip install recursion-detect
```#### Examples
```python
>>> import recursion_detect
>>> def recur():
depth = recursion_detect.depth()
print("depth = %s" % depth)
if depth==5:
return
recur()>>> recur()
0
1
2
3
4
```