exalt-0.1.2
توضیحات
Namespace promotion done right!
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | exalt-0.1.2 |
| نام | exalt |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | ['Philip Trauner'] |
| ایمیل نگهدارنده | ['philip.trauner@arztpraxis.io'] |
| نویسنده | Philip Trauner |
| ایمیل نویسنده | philip.trauner@arztpraxis.io |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/exalt/ |
| مجوز | MIT |
<p align="center">
<img src="https://user-images.githubusercontent.com/9287847/50569701-4cf0f680-0d6c-11e9-93d9-f7c57983fc17.png"/ width="450" alt="exalt">
</p>
---
[](https://python.org)


**exalt** provides a convenient way to dynamically create closures and bind them to a custom namespace. This is primarily useful for preserving an execution-context when calling into a different function.
## Example
```python
from exalt import promote
def baz():
return bar
def foo():
bar = "baz"
return promote(baz, **locals())()
print(foo())
```
<p align="center">——————————————————————————— ↓ ———————————————————————————</p>
```
baz
```
## Installation
```bash
pip3 install --user exalt
```
## Disclaimer
**exalt** heavily relies on CPython implementation details and probably shouldn't be used in a production environment.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl exalt-0.1.2:
pip install exalt-0.1.2.whl
نصب پکیج tar.gz exalt-0.1.2:
pip install exalt-0.1.2.tar.gz