bigstack-0.1.1
توضیحات
Decorator that increase the stack size for a function
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bigstack-0.1.1 |
| نام | bigstack |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Enrico Bacis |
| ایمیل نویسنده | enrico.bacis@gmail.com |
| آدرس صفحه اصلی | http://github.com/enricobacis/bigstack |
| آدرس اینترنتی | https://pypi.org/project/bigstack/ |
| مجوز | MIT |
Description
-----------
This decorator increases the stack size for the function and its recursion
limit. The function runs in a separated thread with a stack size specified
by the ``stacksize`` parameter (``default: 128MiB``). Also the recursion
limit can be modified by the ``recursionlimit`` parameter (``default: 1M``),
but be aware that this is a variable shared by the whole python environment,
so a subsequent invocation of a decorated function may change it.
.. code:: python
@bigstack
def function(...):
"""Highly recursive function."""
...
.. code:: python
@bigstack(stacksize=2 ** 30) # stack size = 1GB
def function(...):
"""Highly recursive function."""
...
Installation
------------
The package has been uploaded to `PyPI`_, so you can install it with pip:
pip install bigstack
.. _PyPI: https://pypi.python.org/pypi/bigstack
نحوه نصب
نصب پکیج whl bigstack-0.1.1:
pip install bigstack-0.1.1.whl
نصب پکیج tar.gz bigstack-0.1.1:
pip install bigstack-0.1.1.tar.gz