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

Clay Sweetser clay.sweetser at gmail.com
Thu Aug 8 14:44:41 CEST 2013



Serhiy Storchaka <storchaka at gmail.com> wrote:
>08.08.13 07:01, Stefan Behnel написав(ла):
>> MRAB, 07.08.2013 22:12:
>>> And are these functions worthy of inclusion in itertools? :-)
>>
>> The fact that they are a short construction of the existing tools
>indicates
>> that they are better suited for the recipes section than the
>itertools
>> functions section of the module docs. There is already a roundrobin()
>recipe.
>
>I think this reason is applicable to the first_true()/coalesce() 
>function (issue18652).
>
Not necessarily... The one line solution that the function in issue 18652 proposes is not one that people might immediately come up with, or solve quite so elegantly. Not that I'm totally against it just being added to the recipes section, but I feel that the recipes section is too often overlooked to be much help (Might there be a way to remedy that?).
>
>_______________________________________________
>Python-ideas mailing list
>Python-ideas at python.org
>http://mail.python.org/mailman/listinfo/python-ideas

-- 
"The trouble with having an open mind, of course, is that people will come along and insist of putting things in it." - Terry Pratchett


More information about the Python-ideas mailing list