I have a Python csv.reader() problem: I have a textfile, containing data that can basicly been read by csv.reader but I need one extra feature, that I am afraid is not included yet: instead of returning the value of the cell, I need it to return a pair (a,b) where the a is the cell content and b is True or False depending on if the reader did remove quotes from the cell.
Example: my file contains a line (not visible here: the cells are tabs delimited):
"123" 123 """123"""
it should return for it [(123,True), (123, False), ("123",True)]
I can't use quoting = csv.QUOTE_NONE because I have quotes and newlines in the cells.
Any Idea on how I do "overload" the reader funktion? Or is there anything else I can use?