Making the case for repeat
steve at REMOVE-THIS-cybersource.com.au
Fri Jun 5 22:32:48 EDT 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>
>> 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?
More information about the Python-list