13 Comments
User's avatar
TAFAKARI's avatar

This was just fantastic as usual, thanks stephen!

Alejandro Piad Morffis's avatar

Excellent as usual! Just for the sake of fun, you definitely *can* program *anything* using just lambdas. They're Turing-complete! Now, whether you should...

Stephen Gruppetta's avatar

Ah yes, maybe we should do a fun post of how to abuse `lambda` functions and guarantee zero-readability!

Alejandro Piad Morffis's avatar

@jjdev would love it for sure

James O'Reilly's avatar

What a great post. Thanks for this 👍. Just the facts.

Stephen Gruppetta's avatar

Thanks James. It’s often glamourised too much!

Carlos R. González Jiménez's avatar

Excellent post. Congrats

Christian Ledermann's avatar

In the context of bytecode optimizations in newer python versions, will a lambda be inlined or is it still a function call?

Stephen Gruppetta's avatar

Good question. I don't knowl I'll try to find out…

Christian Ledermann's avatar

https://github.com/brandtbucher/specialist may be of help investigating this

Stephen Gruppetta's avatar

Looks interesting. Will have a look!