Simmons, Stephen wrote: > > I've come across a bug in CSV where the csv.reader() raises an > exception if the input line contains '\r'. Example code and output > below shows a test case where csv.reader() cannot read an array > written by csv.writer(). > > Error: newline inside string > WARNING: Failure executing file: <csv_error.py>
Did you play with the csv.Dialect setting lineterminator='\n' ? csv.reader(file(name, 'rb'),lineterminator='\n) See also: http://docs.python.org/lib/csv-fmt-params.html Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list