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

First class lexical closures

2007-10-14 Thread Jon Harrop
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 time I looked they were just removing (?!) closures... -- Dr Jon D

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 time I