Syntax for one-line "nonymous" functions in "declaration style"

Alexey Muranov alexey.muranov at gmail.com
Thu Mar 28 16:36:40 EDT 2019


On jeu., mars 28, 2019 at 5:00 PM, python-list-request at python.org wrote:
> So documentation of that syntax would 100% be required

Regarding documentation, i believe there would be 3 line to add:

>     <foo>(<bar>) = <baz>
> 
> is a syntactic sugar for
> 
>     <foo> = lambda <bar>: <baz>

Alexey.





More information about the Python-list mailing list