nested scopes

Fredrik Lundh fredrik at effbot.org
Sat Feb 3 15:55:12 EST 2001


Tim Peters wrote:
> Python's "2-level" scheme was a deliberate counterpoint to the abuses of
> deep lexical nesting in Pascal programs of the time (according to Guido),
> and it's something I've grown to like a lot.  But newbies eternally stumble
> over that functions nest textually but not lexically in Python, and this
> will make life simpler for them.

I'm beginning to suspect that a new "sorry, you can no longer
nest def statements" might have been an easier sell...

Cheers /F





More information about the Python-list mailing list