Tagged Questions
1
vote
1answer
1k views
Is python lambda “really formal” λ-calculus or just share the name?
Now and then I use the Python lambda. Is it so formal that it is safe to say that you can do formal lambda calculus with it? I just used it but I didn't fully understand whether the python lambda and ...
11
votes
3answers
4k views
Why doesn't Python allow multi-line lambdas?
Can someone explain the concrete reasons why BDFL choose to make Python lambdas single line?
This is good:
lambda x: x**x
This results in an error:
lambda x:
x**x
I understand that making ...