step argument for count

Alex Martelli aleax at mail.comcast.net
Tue Dec 20 05:35:26 CET 2005


<smichr at gmail.com> wrote:

> Does anyone know why a step argument was left off of count? There must
> be something that I am missing in why this is the case. For example, I
> read that the negative start and step were left off of islice because
> iterables can be of "infinite length" so you won't know apriori where
> the end is. But how would you be using count in a way that *couldn't*
> use a step argument?

I think it's a reasonable extra-feature request for Python 2.5 -- you
should post it as such to sourceforge.


Alex



More information about the Python-list mailing list