me> Using a file with the following contents: me> >>> open("tabber.csv", "rb").read() me> '1\t2\tabc\n3\t4\tdef\n'
me> I get: me> >>> sniffer = csv.Sniffer() me> >>> d = sniffer.sniff(open("tabber.csv", "rb").read()) me> >>> d.delimiter me> '\t' BTW, this also seems to work with a Mac-style EOL: >>> open("tabber.csv", "rb").read() '1\t2\tabc\r3\t4\tdef\r' >>> d = sniffer.sniff(open("tabber.csv", "rb").read()) >>> d.delimiter '\t' Perhaps this has been fixed in CVS. Skip -- http://mail.python.org/mailman/listinfo/python-list