On Fri, Nov 1, 2013 at 9:18 PM, Ulrich Goebel <m...@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 -- https://mail.python.org/mailman/listinfo/python-list