[Python-Dev] code blocks using 'for' loops and generators

Josiah Carlson jcarlson at uci.edu
Sun Mar 13 05:31:40 CET 2005


Brian Sabbey <sabbey at u.washington.edu> wrote:
> On Sat, 12 Mar 2005, Josiah Carlson wrote:
> 
> > I stand by my "clever hack" statement, and I will agree to disagree with 
> > you on it, like I agree to disagree with you about both the necessity of 
> > passing arbitrary values back into a generator (I think it is poor 
> > style, and too much brain overhead to wonder where data is coming from), 
> > and the necessity of a new syntax to make such things "easier" (if 
> > (ab)using generators in such a way makes /anything/ "easier").
> 
> I will also agree to disagree. If I may also summarize, you see such 
> syntax as magical, non-obvious and unnecessary, and I find it clean and 
> useful.

Small correction: I find the syntax magical, the data flow to be
non-obvious, and the functionality unnecessary (for the reasons
previously specified).

 - Josiah



More information about the Python-Dev mailing list