lambdak: multi-line lambda implementation in native Python

Gregory Ewing greg.ewing at canterbury.ac.nz
Sat Jan 17 16:48:18 EST 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

AltStyle によって変換されたページ (->オリジナル) /