@listify decorator - return a list instead of a generator
Project description
Installation
$ [sudo] pip install listify
Functions
| function | __doc__ |
|---|---|
listify.listify(func) |
@listify decorator |
Examples
yield + list()
>>> def func():
yield "value"
>>> list(func())
list.append()
>>> def func():
result = []
result.append("value")
return result
@listify
>>> @listify
def func():
yield "value"
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
listify-2019.3.22.tar.gz
(1.4 kB
view details)
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 listify-2019.3.22.tar.gz.
File metadata
- Download URL: listify-2019.3.22.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a6f3b0f09515c7c4c8efe513c5c0b8e75b6ff59a5976e297b36e7b3ebc56dce
|
|
| MD5 |
9daa2903da4f6874b22af330ed115c4a
|
|
| BLAKE2b-256 |
81e47dab494386183234bdabc7d14df2e0ca34a2edc1b2023afedb92fe301c1e
|
File details
Details for the file listify-2019.3.22-py2.py3-none-any.whl.
File metadata
- Download URL: listify-2019.3.22-py2.py3-none-any.whl
- Upload date:
- Size: 76.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d142b21dc0126e7939d7b75080bd23860939f47f4acec21dadf2a1f20e5a7f10
|
|
| MD5 |
a8bba3c1030729c3d90da77a74ca6f83
|
|
| BLAKE2b-256 |
0b2d41f7e7ecf6e454375e12f901e92aa56686b67ae339e1bae19a10ea1ab62e
|