[Python-Dev] Re: "groupby" iterator

Guido van Rossum guido at python.org
Wed Dec 3 14:19:52 EST 2003


[Samuele]
> 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.

Thanks -- that all makes sense.

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list