[docs] Lambda Forms error

Cosmin Parvulescu cosmin.parvulescu at gmail.com
Thu Apr 26 08:58:28 CEST 2012


While skimming through the tutorial I came across this line "Here’s a
function that returns the sum of its two arguments: lambda a, b: a+b"
followed by this example

> def make_incrementor(n):
>     return lambda x: x + n
> I believe it is a mistake and the example should be changed to something
along the lines of

*f = lambda a, b:a + b*

Best regards
Cosmin-Alexandru Parvulescu

Facebook <http://www.facebook.com/PCosmin89> |
G!Profiles <https://profiles.google.com/u/0/104113679309488053313>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20120426/2bbbce62/attachment.html>

More information about the docs mailing list