The future of Python immutability

Terry Reedy tjreedy at udel.edu
Sat Sep 5 22:34:32 EDT 2009


Adam Skutt wrote:
> On Sep 5, 11:29 am, Terry Reedy <tjre... at udel.edu> wrote:
>> This is a pointless replacement for 'def b(x): return x+a'
> 
> And?  That has nothing to do with anything I was saying whatsoever.

Agreed.  However, posts are read by newbies.
Posts that promote bad habits are fair game for comment.
> 
>> Python does not have lambda objects. It has lambda expressions that
>> produce function objects identical except for .__name__ to the
>> equivalent def statement output.

> Sure sounds like python has lambda objects to me then... 

The idea that Python has 'lambda objects' had caused no end of mischief 
over the years.

tjr




More information about the Python-list mailing list