On Saturday 22 March 2003 02:09 pm, Johann Hibschman wrote: > Seth Kurtzberg <seth / cql.com> writes: > > Ruby has closures, Python does not. Not getting into the "who's better" > > argument; just citing a fact. > > Actually, no, that's wrong. Python has had closures for a while now. > > >>> def make_adder(x): > > .... def adder(y): > .... return x + y > .... return adder > .... > > >>> a10 = make_adder(10) > >>> a10(2) I'll have to check whether python has changed, but this example is not a closure. > > 12 > > > --Johann -- Seth Kurtzberg M. I. S. Corp. 480-661-1849 seth / cql.com