Re: [Python-Dev] Re: "groupby" iterator

At 07:00 03.12.2003 -0800, Guido van Rossum wrote:
that would confuse schemers <wink>
I would expect blocks to be blocks, accepting also statements and sharing the scope with the surrounding code, not having early-binding semantics. Honestly, given the introduction of generator exprs, a substitute expression for lambda with early-binding semantics makes sense. Personally I can see it also as meaningful wrt the statemenent/expression dichotomy in python, and we would have early-binding as a general rule for "expressions". But again I think that a block-like syntax should be used, if at all, for real blocks. regards.

[Samuele]
Thanks -- that all makes sense. --Guido van Rossum (home page: http://www.python.org/~guido/)

[Samuele]
Thanks -- that all makes sense. --Guido van Rossum (home page: http://www.python.org/~guido/)
participants (2)
-
Guido van Rossum
-
Samuele Pedroni