Common LISP-style closures with Python
jeanpierreda at gmail.com
Sat Feb 4 17:52:45 EST 2012
On Sat, Feb 4, 2012 at 5:58 AM, Arnaud Delobelle <arnodel at gmail.com> wrote:
> I think what Chris asking is: what is the feature of Common-Lisp
> closures that Python closures share but other languages don't?
> I think what he is implying is that there is no such feature. Python
> closures are no more "Common-Lisp-style" than they are "Scheme-style"
> or "Smalltalk-like" or any other language-like.
"No such feature"? What's that nonlocal thing then? The above function
could not be written that way in Python 2.
Of course maybe we want to put this feature in another category, but
anyway, the function couldn't be written in some languages, even
though they have closures.
More information about the Python-list