What can you do in LISP that you can't do in Python
Chris Tavares
ctavares at develop.com
Fri May 25 02:29:14 EDT 2001
"mikel evins" <himself at mikelevins.com> wrote in message
news:9ej50e$35u at dispatch.concentric.net...
[...snip...]
>
> How, in Python, do you
>
> 1) build new syntax
>
Typically, you don't. Building new syntax is a technique that's limited to
the LISP and FORTH families AFAIK.
> 2) capture a lexical environment
>
You don't. You build an object - same net effect (state & behavior kept
together), different implementation.
-Chris
P.S. There is the default argument hack, but in general Python code just
creating a class is a lot more straightforward.
More information about the Python-list
mailing list