[ python-Feature Requests-1686390 ] csv sniff example
SourceForge.net
noreply at sourceforge.net
Thu Mar 22 23:04:37 CET 2007
Feature Requests item #1686390, was opened at 2007-03-22 22:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1686390&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Thomas Guettler (guettli)
Assigned to: Nobody/Anonymous (nobody)
Summary: csv sniff example
Initial Comment:
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1686390&group_id=5470
More information about the Python-bugs-list
mailing list