Alternative to multi-line lambdas: Assign-anywhere def statements

Yawar Amin yawar.amin at gmail.com
Sat Jan 24 21:30:49 EST 2015


Hi Ethan,

On Saturday, January 24, 2015 at 9:00:12 PM UTC-5, Ethan Furman wrote:
> [...]
> __name__ being one of them.  One of the reasons lambda
> is not encouraged is because its name is always '<lambda>', which just
> ain't helpful when the smelly becomes air borne!  ;)

Doesn't the traceback tell us exactly where the lambda was called from?

Regards,

Yawar



More information about the Python-list mailing list