[issue18648] FP Howto and the PEP 8 lambda guildline

2014-12-31 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue18648] FP Howto and the PEP 8 lambda guildline

2014-12-31 Thread A.M. Kuchling
A.M. Kuchling added the comment: This section is trying to illustrate the reasoning that leads to PEP 8's conclusion, so I don't want to just replace it with a reference to PEP8. -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue18648] FP Howto and the PEP 8 lambda guildline

2013-08-10 Thread Ezio Melotti
Ezio Melotti added the comment: IMHO that part should not suggest to use lambdas as small functions, so I would drop the example with adder/print_assign and the discussion about lambdas vs defs (the example that uses defs can stay), and keep the rest (from the "reduce" example). -- no

[issue18648] FP Howto and the PEP 8 lambda guildline

2013-08-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would just change "my usual course is to avoid using lambda" to "PEP 8 prescribes using def." Note that PEP 8 itself displays f = lambda x: 2*x as an example of what not to do. I see no problem with the current examples. -- nosy: +belopolsky

[issue18648] FP Howto and the PEP 8 lambda guildline

2013-08-03 Thread Terry J. Reedy
New submission from Terry J. Reedy: Functional Programming HowTo, near the end, has a section Small functions and the lambda expression http://docs.python.org/3/howto/functional.html#small-functions-and-the-lambda-expression To illustrate, it starts with adder = lambda x, y: x+y print_assign