I have been looking at the CSV docs, and have been having some issues with the iteration through rows. If someone could clear it up, that'd be great. For instance, take this code:
custom_feature_string = 'Custom feature 1;custom feature, 2; Custom feature3; custom "feature" 4; customfeature5'
cfeature = StringIO.StringIO(custom_feature_string)
reader = csv.reader(cfeature, delimiter=';', skipinitialspace=True)
for row in reader:
print '\n'.join(row)
Now this is all good when it comes to printing things out to the screen, but when I try and replace print '\n'.join(row) with print row, a list is printed out containing each entry. I would like to be able to manipulate each entry once as it goes through the iterator. So I would be able to save each entry in a database. Any suggestions on how to do this?