Update to PEP 227 (static scoping)
Don Tuttle
tuttledon at hotmail.com
Thu Feb 22 13:24:24 EST 2001
"Tim Peters" <tim.one at home.com> wrote in message
news:mailman.982833927.2343.python-list at python.org...
>
> From a cost/benefit view, the crushingly overwhelming source of scope
> complaints comes from people using Python's little lambdas. Indeed, there
> were exceedingly few scope complaints before little lambdas were
introduced,
> and non-stop howling ever since.
>
> I say "little" because they're restricted to a single expression, and
> expressions in Python can never rebind a name (all binding constructs are
> statements in Python, not expressions). So the people who want lexical
> scoping in Python the most (in practice, not the ones who just talk about
it
> or are idly pining for Scheme <wink>) have no possibility of rebinding a
> name anyway in the context they most want it.
Not knowing what I'm talking about, but...could lexical scoping be
implemented as a command line switch? '-L'
Don
More information about the Python-list
mailing list