Making the case for repeat

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Jun 5 22:21:40 EDT 2009


En Fri, 05 Jun 2009 08:04:37 -0300, pataphor <pataphor at gmail.com> escribió:

> But what is simple? I am currently working on a universal feature
> creeper that could replace itertools.cycle, itertools.repeat,
> itertools.chain and reverse and also helps to severely cut down on
> itertools.islice usage. All within virtually the same parameter
> footprint as the last function I posted. The problem is posting *this*
> function would kill my earlier repeat for sure. And it already had a
> problem with parameters < 0 (Hint: that last bug has now become a
> feature in the unpostable repeat implementation)

Plans to conquer the world, second desk, over there.

-- 
Gabriel Genellina




More information about the Python-list mailing list