lambdak: multi-line lambda implementation in native Python

Gregory Ewing greg.ewing at canterbury.ac.nz
Sat Jan 17 22:48:18 CET 2015


Steven D'Aprano wrote:

> def a(x=4)
>     x+2
> end
> 
> a + b => 7
> a+b   => 7
> a+ b  => 7
> a +b  => 3
> 
> A shiny new penny for any non-Ruby coder who can explain that!

Seems pretty obvious to me: the Ruby interpreter is
infested with demons.

DWIM = Demonic Whim Infers Meaning

-- 
Greg



More information about the Python-list mailing list