Best way to parse file into db-type layout?

John Machin sjmachin at lexicon.net
Thu Apr 28 21:05:51 EDT 2005


On Fri, 29 Apr 2005 01:44:30 +0100, Michael Hoffman
<cam.ac.uk at mh391.invalid> wrote:

>for row in csv.reader(fileinput.input()):

csv.reader requires that if the first arg is a file that it be opened
in binary mode.





More information about the Python-list mailing list