Why does this not iterate?
import logging logging.basicConfig(level=logging.DEBUG) x = [] y = [[] for n in range(0, 1)] linedata = [\"0\",\"1\",\"2\"] x.append(
this line :
logging.debug( list(e) )
consumes the iterator, so when you get here:
for k, v in e: # ...
e is already exhausted.
e