> > From: Guido van Rossum <guido@...>
> > Subject: Shall I start adding iterators to Python 2.2?
> > I've got a fairly complete implementation of iterators along the lines
> > of Ping's PEP (slightly updated).
> > My question is: should I just merge this code onto the trunk (making
> > it part of 2.2), or should we review the design more before committing
> > to this implementation?
> From: "Tim Peters" <tim.one@...>
> My answer is both!
I second the motion.
> I bet Greg Wilson would like it for his Set PEP work
> too, as abusing the __getitem__ protocol for set iteration is
> giving him headaches.
Yup. Being able to iterate directly over a dictionary's keys w/out
listifying will make things more efficient, as well.