[Python-Dev] PEP 8 modernisation (original) (raw)
Terry Reedy tjreedy at udel.edu
Thu Aug 1 22:29:07 CEST 2013
- Previous message: [Python-Dev] PEP 8 modernisation
- Next message: [Python-Dev] PEP 8 modernisation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 8/1/2013 10:34 AM, Alexander Shorin wrote:
Hi Nick,
On Thu, Aug 1, 2013 at 4:44 PM, Nick Coghlan <ncoghlan at gmail.com> wrote: 9. Explicit guideline not to assign lambdas to names (use def, that's what it's for) Even for propose to fit chars-per-line limit
def f(x): return 2x f = lambda x: 2x
Three spaces is seldom a crucial difference. If the expression is so long it go past the limit (whatever we decide it is), it can be wrapped.
and/or to remove duplicates (especially for sorted groupby case)?
I do not understand this.
-- Terry Jan Reedy
- Previous message: [Python-Dev] PEP 8 modernisation
- Next message: [Python-Dev] PEP 8 modernisation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]