[Python-ideas] generator.__add__
Guido van Rossum
guido at python.org
Mon Apr 5 01:00:58 CEST 2010
On Sun, Apr 4, 2010 at 9:58 AM, cool-RR <cool-rr at cool-rr.com> wrote:
> I'm still a bit confused by generators and generator expressions, but what
> about making a `generator.__add__` method, that'll act like
> `itertools.chain`?
This gets proposed several times a year. We always shoot it down for
the same reasons: iterators are an abstract API and we don't want to
burden every iterator implementation with having to implement various
operations.
--
--Guido van Rossum (python.org/~guido)
More information about the Python-ideas
mailing list