Re: First class lexical closures

2007-10-15 Thread Bruno Desthuilliers
Jon Harrop a écrit : > Just debating somewhere else whether or not Python might be considered a > functional programming language. Lua, Ruby and Perl all seem to provide > first class lexical closures. def makeadder(x): def add(y): return x+y return add If that's what you mean, then

Re: First class lexical closures

2007-10-14 Thread Kay Schluehr
On Oct 14, 7:54 am, Jon Harrop <[EMAIL PROTECTED]> wrote: > Just debating somewhere else whether or not Python might be considered a > functional programming language. Lua, Ruby and Perl all seem to provide > first class lexical closures. > > What is the current state of affairs in Python? Last tim