[Python-ideas] Generators' and iterators' __add__ method

Yuval Greenfield ubershmekel at gmail.com
Wed Feb 15 17:50:42 CET 2012

On Wed, Feb 15, 2012 at 6:41 PM, Guido van Rossum <guido at python.org> wrote:

> It's been proposed many times, but always stumbled on the fact that
> the iterator protocol doesn't have a standard implementation -- each
> object implementing __next__ would have to be modified separately to
> also support __add__.
If it isn't a bad idea then we can at least do generators and whatever we
find in the standard lib.

I think I extrapolate from your response that it isn't a bad idea. I'll
work on a patch.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120215/d36cfb19/attachment.html>

More information about the Python-ideas mailing list