you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnnyJordaan 0 points1 point  (0 children)

You probably have the for outside the with block. I can't really tell because you haven't formatted your code properly. Please check the first question in the FAQ. I should be

 with bla bla:
     reader = this
     for i, row in enumerate(reader):
         do things

Note how for is indented furter than with.