git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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.