Skip to content

andrewp-as-is/listify.py

Repository files navigation

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"

readme42.com

About

🐍 @Listify decorator - return a list instead of a generator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages