autodata-0.12
توضیحات
Auto allocation dict and list
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | autodata-0.12 |
| نام | autodata |
| نسخه کتابخانه | 0.12 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kenichiro SHII |
| ایمیل نویسنده | shii4c@gmail.com |
| آدرس صفحه اصلی | https://github.com/shii4c/PythonAutoData |
| آدرس اینترنتی | https://pypi.org/project/autodata/ |
| مجوز | MIT |
Python AutoData
================
Overview
----------
This is auto allocate dict and list like Perl.
.. code-block:: python
import autodata
d = autodata.autodict()
d["key1"]["key2"] = "val" # => d["key1"] == {"key2": "val"}
d["key2"] += 1 # => d["key2"] == 1
d["key3"][2] = 1 # => d["key3"] == [None, None, 1]
Restriction
-------------
- The type of dict key is only strings.
- Dict item is not allocated by dict.get method.
- None value is not returned by autolist[number]. Instead, an emptyitem object is returned.
Known issues
--------------
.. code-block:: python
d = autodata.autodict()
a = d["key"]
a += 1 # => d == {"key" : 1}
a += 1 # => d == {"key" : 1}
نحوه نصب
نصب پکیج whl autodata-0.12:
pip install autodata-0.12.whl
نصب پکیج tar.gz autodata-0.12:
pip install autodata-0.12.tar.gz