Due to being in a hurry I didn't paste correctly (sorry). The intention is to put values of column 1 ("id") in the roles list, therefore appending within the loop, to fill a session var.
The complete code is: roles = [] inp = 'C:/temp/test.csv' try: fp = open(inp, 'rb') reader = csv.reader(fp, dialect='excel', delimiter=';') for r in reader: roles.append(r) ## ultimately should be something like r.id or r[0] ## first row of csv file should be skipped because of column names except: msg = 'Something's wrong with the csv.reader' return dict(file=inp,roles=str(roles)) The roles list isn't populated at all :( -- http://mail.python.org/mailman/listinfo/python-list