This is a tool to fix recursive calls to loop in a fully automatic manner.
Project description
再帰呼び出しを全自動でloopに直すツールです。 関数呼び出しの深さが非常に深くなっても正常に実行できます。
This is a tool to fix recursive calls to loop in a fully automatic manner. It can execute successfully even when the depth of the function call is very deep.
How to use: 使用法
# pip install unrec
import unrec
@unrec
def frac(n):
if n == 0: return 1
return n * frac(n-1)
print(frac(9999)) # -> NO ERROR!!
This description is under construction.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unrec-0.1.0.tar.gz.
File metadata
- Download URL: unrec-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e8aa1e6d5d3930ff20b93764e4e37c7c0a8fe59d817a2a0e717af6dbb9aa3a4
|
|
| MD5 |
f67282936a476c264cc562484a5b9e9b
|
|
| BLAKE2b-256 |
dfff44685737f46ae54264f6df98b9ef6abd0b4831391538ab7be170fa001d06
|
File details
Details for the file unrec-0.1.0-py3-none-any.whl.
File metadata
- Download URL: unrec-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f807071a9f1cce8458fce35616f961dcf728a03be8fb63c9b95a5bbeea8d8ac
|
|
| MD5 |
bb0f621f2586ed083449772136e1b52c
|
|
| BLAKE2b-256 |
4532041aef514bb26cfca8b7ab3bfa34fc0ee5007fe939151350379fb1016546
|