dude, why you need to over complicate things? you open a file, file handler You have object returned by
Also using next() within
You turn these several lines of code that wavic provided into a mess
output.split()
that supports iterator protocol. Why the hell you need to create another iterator?Also using next() within
for item in iterator
will just screw things...You turn these several lines of code that wavic provided into a mess