[issue7350] csv doesn't handle escaped characters properly

2009-11-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7350] csv doesn't handle escaped characters properly

2009-11-20 Thread Virgil Dupras
Virgil Dupras added the comment: You have to tell the reader how to handle escaping. In your case, you should send escapechar="\\" in reader()'s kwargs. -- nosy: +vdupras ___ Python tracker ___

[issue7350] csv doesn't handle escaped characters properly

2009-11-18 Thread Eric Torstenson
New submission from Eric Torstenson : When I use CSV with a separator, if there is an escaped separator in the field, it causes the next field to become part of the current one: file = csv.reader(open(filename), delimiter='\t', quotechar="'") for words in file: print words[0-8] If, say line