[Python-Dev] PEP 8 modernisation
Alexander Belopolsky
alexander.belopolsky at gmail.com
Thu Aug 1 17:35:54 CEST 2013
On Thu, Aug 1, 2013 at 11:03 AM, Alexander Shorin <kxepal at gmail.com> wrote:
> ...and, if so, why lambda's?(: Without backward compatibility point I
> see that they are getting "unofficially" deprecated and their usage is
> dishonored.
>
>
Here is one use-case where .. = lambda .. cannot be replaced with def ..
op['add'] = lambda x,y: x+y
op['mul'] = lambda x, y: x*y
..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130801/513f8af4/attachment.html>
More information about the Python-Dev
mailing list