[Python-Dev] Explicit Lexical Scoping (pre-PEP?)

Jan Kanis jan-python at maka.demon.nl
Fri Jul 7 01:47:50 CEST 2006

On Fri, 07 Jul 2006 01:25:19 +0200, Phillip J. Eby <pje at telecommunity.com>  

>>> - or so it feels like to the person who's experiencing it.
>> Have you ever been that person, or come across such a situation?
> Many times.  The hard thing about trying to provide use cases for this  
> is that of course you can always find another way to write it.  It's  
> just that sometimes the nested function is a perfect solution at point  
> in time A, and then at point in time B, a change in the program requires  
> that the nested function mutate a bit of state, resulting in either a  
> rewrite to do it the "right" way, or hacking mutable objects.

Well, not an actual example, but close enough.  Leaving the rest to Guido  

More information about the Python-Dev mailing list