What can you do in LISP that you can't do in Python

Joshua Marshall jmarshal at mathworks.com
Fri May 25 08:57:31 EDT 2001


Alex Martelli <aleaxit at yahoo.com> wrote:

>> 2) capture a lexical environment

> You mean, as in "from __future__ import nested_scopes"
> (in 2.1 -- not needed in 2.2), or what else?

Although in Python, variables in the scopes between local and global
are read-only (unless I'm mistaken).  But you can get around this if
necessary by using an extra level of indirection (eg. a variable that
holds a list holding your value).



More information about the Python-list mailing list