@listify decorator - return a list instead of a generator
Project description
Install
$ [sudo] pip install listify
Functions
function | description |
---|---|
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"
readme-md - README.md generator
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-2018.11.19.tar.gz
(1.3 kB
view hashes)
Built Distribution
Close
Hashes for listify-2018.11.19-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2888c36f8fe9fad23645383d2b3640980a272c059d0f665ef6083626da1d5eb |
|
MD5 | 6a8f476c095776a38263171347ce0af0 |
|
BLAKE2b-256 | dbb2fd9ecaf7289526689a3c4a0785ceff3e0781562bf090b7fad7d5500f77ce |