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

Neil Schemenauer nas at python.ca
Wed May 16 20:42:00 EDT 2001


David LeBlanc wrote:
> This is more a question:
> 
> Would this work?:
> sling = """ window.showBusyCursorDuring():
>      window.showStatusDuring(msg='Verifying search conditions'):
>          searchForm.verify()
>      window.showStatusDuring(msg='Executing query'):
>          resultSet = searchForm.executeQuery()"""
> 
> eval sling

No, eval evaluates expressions.  You want a closure.  Nested
scopes makes this work nicely.

  Neil




More information about the Python-list mailing list