[Python-ideas] + operator on generators

Paul Moore p.f.moore at gmail.com
Sat Jul 1 05:30:00 EDT 2017

On 1 July 2017 at 07:13, Steven D'Aprano <steve at pearwood.info> wrote:
> But the more I think about it the more I agree with Nick. Let's start
> by moving itertools.chain into built-ins, with zip and map, and only
> consider giving it an operator after we've had a few years of experience
> with chain as a built-in. We might even find that an operator doesn't
> add any real value.

I'm struck here by the contrast between this and the "let's slim down
the stdlib" debates we've had in the past.

How difficult is it really to add "from itertools import chain" at the
start of a file? It's not even as if itertools is a 3rd party


More information about the Python-ideas mailing list