[Python-ideas] zip_strict() or similar in itertools ?

Alfredo Solano Martínez asolano at icai.es
Thu Apr 4 13:49:54 CEST 2013


Hi,

Have you tried using a marker as fill value and then look for it to
raise the exception? The membership operator is quite decent, IIRC.

Alfredo

On Thu, Apr 4, 2013 at 12:42 PM, Wolfgang Maier
<wolfgang.maier at biologie.uni-freiburg.de> wrote:
> Wolfgang Maier <wolfgang.maier at ...> writes:
>
>> , which works well, but is about 3-4 times slower than the grouper() recipe.
>> If you have alternative, faster solutions that I wasn't thinking of, I'd be
>> very interested to here about them.
>>
>> Best,
>> Wolfgang
>>
>
> ok, I wasn't remembering the timing results correctly: it's about 8 times
> slower than grouper.
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas



More information about the Python-ideas mailing list