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

Guido van Rossum guido at python.org
Wed Feb 15 17:54:52 CET 2012

It IS a bad idea.

--Guido van Rossum (sent from Android phone)
On Feb 15, 2012 8:50 AM, "Yuval Greenfield" <ubershmekel at gmail.com> wrote:

> 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.
> Cheers,
> Yuval
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120215/b5bc7f9d/attachment.html>

More information about the Python-ideas mailing list