step argument for count

S

smichr

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?

/c
 
A

Alex Martelli

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top