[Python-ideas] Syntactic sugar to declare partial functions

Robert Vanden Eynde robertve92 at gmail.com
Sat Aug 4 12:44:18 EDT 2018


> @partiallymulti
> def stuff(x,y,z):
>     return x - y + 2*z
>

f = stuff[1,2]
f(4)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180804/934cbbc6/attachment.html>


More information about the Python-ideas mailing list