Issue 1686390: csv sniff example (original) (raw)

Issue1686390

Created on 2007-03-22 22:04 by guettli, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg55051 - (view) Author: Thomas Guettler (guettli) * Date: 2007-03-22 22:04
Hi, I think the csv module misses an example for the nice sniff method: import csv dialect=csv.Sniffer().sniff(open(csvfile).read(1024)) fd=open(csvfile) for row in csv.reader(fd, dialect): for col in row: print col, print
msg59392 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-01-06 16:05
I edited the example a bit and added it to the docs in r59778.
History
Date User Action Args
2022-04-11 14:56:23 admin set github: 44764
2008-01-06 16:05:13 georg.brandl set status: open -> closedassignee: skip.montanaro -> georg.brandlresolution: fixedmessages: + nosy: + georg.brandl
2007-03-22 22:04:36 guettli create