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

David LeBlanc whisper at oz.nospamnet
Wed May 23 14:41:27 EDT 2001


In article <mailman.990060145.32539.python-list at python.org>, 
nas at python.ca says...
> 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
> 
> 

I'm not at all sure how you could emulate this using nested scopes...

Re: Closures - A good arguement for Stackless!

Dave LeBlanc



More information about the Python-list mailing list