@listify decorator - return a list instead of a generator
Project description
Installation
$ [sudo] pip install listify
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-2020.12.3.tar.gz
(1.4 kB
view hashes)