[Python-Dev] PEP 8: Discourage named lambdas? (original) (raw)

Christian Heimes lists at cheimes.de
Sat May 3 13:19:34 CEST 2008


Steven schrieb:

Speaking as one of those "some people", my position is that functions created with lambda are first-class objects the same as everything else in Python, and a rule that says "You must not assign a lambda to a name, ever" would be a terrible rule.

PEP 8 is for the standard library and Python core only. You can write your own code like you prefer. Nobody is going to enforce the PEP 8 style guide unless you write code for the stdlib.

(By the way +1 from me, too).

Christian



More information about the Python-Dev mailing list