[Python-Dev] Please Vote -- Generator Comprehensions

Greg Ward gward@python.net
Fri, 8 Mar 2002 10:30:10 -0500


On 06 March 2002, Raymond Hettinger said:
> Before I send generator comprehension portion to Guido for
> pronouncement, I would like to get all of your votes +1 or -1 on just
> the part about Generator Comprehensions.

Well, since the proposal is four orthogonal ideas, may I vote multiple
times?  Here goes...

  -1 on new x{map,filter,...} builtins -- feels like too much at once
  +0 on a new module to provide x{map,filter,...}
  +0.5 on indexed() as a builtin
  +1 on generator comprehensions; I favour the brackets
  -0 on generater parameter passing, -1 on the particular syntax chosen
  -0 on generater exception passing, -1 on using "throw"

(My last two votes are mostly because I haven't used generators very
much and don't really understand either the problem or the proposed
solution.  So yes, I am ignorant.  But I can spot ugly syntax/spelling
when I see it.)

        Greg
-- 
Greg Ward - programmer-at-large                         gward@python.net
http://starship.python.net/~gward/
Vote anarchist.