How is this not pythonic? series.apply(x -> x**2) Compared to.. series.apply(lambda x: x**2)
(x, y) -> x+y, () -> 0, (x) -> x**2 (for single parameter, we can write it without parenthesis like the example above) are pythonic enough to my eyes. Abdulla > On 17 Feb 2021, at 10:59 PM, Joao S. O. Bueno <jsbu...@python.org.br> wrote: > > If someone comes with a "pythonic" way to lift restrictions on > lambda, that could be something for debate, but so far this is > just about uglifying it, and creating a new syntax matching > exactly what exists today.
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/EK62X73EIH776XGDWUWSN4GWFXDEFD22/ Code of Conduct: http://python.org/psf/codeofconduct/