On 16 Jan 2010 20:25:44 GMT Steven D'Aprano <st...@remove-this-cybersource.com.au> wrote:
> On Sat, 16 Jan 2010 20:04:09 +0100, Martin Manns wrote: > >> islice(count(start, step), (stop-start+step-1)//step). > > > > However, count only accepts one parameter, so that this solution > > does not work. Furthermore, islice only accepts positive values for > > step. > > This should be reported as a documentation bug. I added a bug report [issue7721]. Thanks for the code review. Martin -- http://mail.python.org/mailman/listinfo/python-list