Skip to content

Instantly share code, notes, and snippets.

@cluelesscoder
Created August 21, 2012 19:02
Show Gist options
  • Save cluelesscoder/3418362 to your computer and use it in GitHub Desktop.
Save cluelesscoder/3418362 to your computer and use it in GitHub Desktop.
Python 2 testing DictReader
import csv
import re
# testreader = csv.DictReader(open('C:/Documents and Settings/'
# 'BJCREASY.SOA/Desktop/test2.csv', 'rb'))
with open('C:/Documents and Settings/'
'BJCREASY.SOA/Desktop/test2.csv', 'rb') as f:
reader = csv.reader(f)
for row in reader:
print row
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment