Honestly I am a little confused here, why can't I iterate twice over the same data?
def _view(self,dbName):
db = self.dictDatabases[dbName]
data = db[3]
for row in data:
print("doing this one time")
for row in data:
print("doing this two times")
This will print out "doing this one time" a few times (as data has a few rows), however it will NOT print out "doing this two times" at all ...
The first time I iterate over data works fine, but the second time when I run the last list "for row in data" this returns nothing ... so executing it one time works but not twice ... ?
FYI - data is a csv.reader object (in case that is the reason)...