Making the case for repeat

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sat Jun 6 04:32:48 CEST 2009


On Fri, 05 Jun 2009 23:21:40 -0300, Gabriel Genellina wrote:

> 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.


He'll have to go to the end of the queue though.


Why is it that it's (almost) always newbies with about five minutes' 
worth of experience with Python that come up with these grandiose plans 
to replace entire modules with a single function?



-- 
Steven



More information about the Python-list mailing list