[Python-ideas] Add 'interleave' function to itertools?

Antoine Pitrou solipsis at pitrou.net
Fri Aug 9 21:18:18 CEST 2013


On Fri, 9 Aug 2013 19:08:09 +0100
Oscar Benjamin
<oscar.j.benjamin at gmail.com> wrote:
> 
> Sorry I didn't mean that they should go in a different module because
> of more-itertools. I was just mentioning more-itertools at the same
> time.
> 
> They should go in a different module because itertools is a very
> carefully designed minimal set of primitives and I think it's bad to
> pollute that by throwing in any old thing for convenience (and based
> on his previous comments I'm pretty sure Raymond that's how Raymond
> feels.

Minimalism is pretty much a subjective thing. Also, it can be a foolish
thing to pursue when maintaining an API.

For example, the ssl module until Python 2.6 strived for minimalism.
What it meant really is that it was so devoid of features that it was
actually a threat for the security of Python applications using it.

Regards

Antoine.




More information about the Python-ideas mailing list