"Backward"-Iterator - Beginners question
Chris Angelico
rosuav at gmail.com
Fri Nov 1 07:55:00 EDT 2013
On Fri, Nov 1, 2013 at 9:18 PM, Ulrich Goebel <ml at fam-goebel.de> 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 you need to iterate over something more than once, or
go back and forth through it a bit, this is probably the best general
solution anyway. With a list, heaps of things are easy, and unless
you're working with gobs of data, you won't have any problems.
ChrisA
More information about the Python-list
mailing list