Hmm, maybe we shouldn't have a function with the same name as a Python standard lib module. For, now, you could also do:
import csv as stdlib_csv stdlib_csv.reader(...) or from csv import reader reader(...) Anthony On Monday, January 2, 2012 8:18:33 PM UTC-5, Plumo wrote: > > I get an error when trying to parse CSV data in my model: > > for row in csv.reader(open(sample_file)): > AttributeError: 'function' object has no attribute 'reader' > > It seems the problem is that appadmin.py has a csv() function that overrides > the csv import in my model. I tried renaming this function and the error > stopped. > > So, should this function be renamed? > > Richard > >