Re: "Backward"-Iterator - Beginners question

2013-11-01 Thread patrick vrijlandt
Chris Angelico wrote: > On Fri, Nov 1, 2013 at 9:18 PM, Ulrich Goebel wrote: >> That gives me the solution. What I have, is an iterator object comming as a >> SQLite database cursor object. So I could minimize the underliying SELECT >> and build index = list(cursor). Then with Your hints I get wh

Re: "Backward"-Iterator - Beginners question

2013-11-01 Thread Chris Angelico
On Fri, Nov 1, 2013 at 9:18 PM, Ulrich Goebel wrote: > That gives me the solution. What I have, is an iterator object comming as a > SQLite database cursor object. So I could minimize the underliying SELECT > and build index = list(cursor). Then with Your hints I get what I want. Looks good! If y

Re: "Backward"-Iterator - Beginners question

2013-11-01 Thread Ulrich Goebel
Hi Am 31.10.2013 23:35, schrieb Terry Reedy: On 10/31/2013 5:29 PM, Ulrich Goebel wrote: I'm locking for an "iterator" type with not only the .next() method, but with a .previous(), .first() and .last() method, so that I can through it from the beginning or from the end, and in both directions

Re: "Backward"-Iterator - Beginners question

2013-10-31 Thread Dan Stromberg
On Thu, Oct 31, 2013 at 2:29 PM, Ulrich Goebel wrote: > Hallo, > > I'm locking for an "iterator" type with not only the .next() method, but > with a .previous(), .first() and .last() method, so that I can through it > from the beginning or from the end, and in both directions, even > alternately

Re: "Backward"-Iterator - Beginners question

2013-10-31 Thread Terry Reedy
On 10/31/2013 5:29 PM, Ulrich Goebel wrote: I'm locking for an "iterator" type with not only the .next() method, but with a .previous(), .first() and .last() method, so that I can through it from the beginning or from the end, and in both directions, even alternately (for example two steps forwa

Re: "Backward"-Iterator - Beginners question

2013-10-31 Thread Bernd Nawothnig
On 2013-10-31, Ulrich Goebel wrote: > I'm locking for an "iterator" type with not only the .next() method, but > with a .previous(), .first() and .last() method, so that I can through > it from the beginning or from the end, and in both directions, even > alternately (for example two steps forwa

"Backward"-Iterator - Beginners question

2013-10-31 Thread Ulrich Goebel
Hallo, I'm locking for an "iterator" type with not only the .next() method, but with a .previous(), .first() and .last() method, so that I can through it from the beginning or from the end, and in both directions, even alternately (for example two steps forward, one backward, two steps forwar