How can I use the python fetchone() call without removing it from the list.
If I do:
while True:
print cur.fetchone()
where each line is the next row.
How can I do something like
cur.fetchone(pop=False) # so it doesnt remove it from the list as Im just testing something and I will actually fetch that row later.
basically. I need to fetch a row. Check something in it. if it matches, pop if off the list and do stuff to that row. Otherwise. move on.