Nested scopes: why is it weird?

Cliff Wells logiplexsoftware at earthlink.net
Fri Sep 7 19:05:24 EDT 2001


On Friday 07 September 2001 14:45, Scott Long wrote:

>
> It looks like the real reason for nested scopes was to get rid of the
> lambda hack (passing variables through default arguments). Perhaps
> nested scopes are over-general, and should ONLY apply to lambda
> expressions? That's really the only place they are necessary...
>

You're probably correct about the lambda hack.  I detested that and nested 
scopes make it much cleaner.   As far as limiting nested scopes to lambda 
functions, that doesn't seem too unreasonable.

-- 
Cliff Wells
Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308
(800) 735-0555 x308




More information about the Python-list mailing list