Zen of Python

Paul Rubin http
Wed Jan 19 23:38:32 EST 2005


Tim Peters <tim.peters at gmail.com> writes:
> Python's basic list type is a flat vector instead of a
> recursively-defined S-expression, and that there's no direct way to
> break out of a containing loop from a nested loop.

Huh?  [1,2,[3,4,5],[6,[[[[7]],8]]]] is a perfectly valid Python list.
And you can break out of a containing loop from a nested loop with
try/raise.  

More troublesome is not being able to see a variable in a containing
scope from a nested scope, unless the containing scope is the global
one.  Why bother debating lexical scope for years before deciding to
add it, only to stop halfway?



More information about the Python-list mailing list