PEP 312 - Making lambdas implicit worries me, surely it's just the name 'lambda' that is bad...

Alex Martelli aleax at aleax.it
Thu Mar 13 03:31:37 EST 2003


Stephen Horne wrote:

> On Wed, 12 Mar 2003 17:54:37 -0500, Jack Diederich
> <jack at performancedrivers.com> wrote:
> 
>>A groups.google link to a post where (in the footnotes) I mention that
>>'lambda' is both A: a long keyword, and B: one of the few keywords that
>>never starts a line (hence it jars the eye).
> 
> I don't really see the relevance of the fact that "'lambda' never
> starts a line". Other frequently used words (such as built-in function
> names) also never start a line - 'reduce' is as long as 'lambda' for a

Some built-in function names OFTEN "start a line" -- setattr, for
example (you're far more rarely going to use setattr EXCEPT at the
start of a line).

> start. What is the relevance of the distinction between keywords and
> standard identifiers in this issue?

No idea, just wanted to correct the previous strange assertion;-).


Alex





More information about the Python-list mailing list