[prev in list] [next in list] [prev in thread] [next in thread]
List: python-csv
Subject: [Csv] ignore blank lines?
From: djc () object-craft ! com ! au (Dave Cole)
Date: 2003-02-27 8:33:14
Message-ID: m365r6nmwl.fsf () ferret ! object-craft ! com ! au
[Download RAW message or body]
Dave> That is not strictly true. We could come up with a dialect
Dave> parameter which is unique to the Python csv module which does
Dave> this:
Dave> abc,null,def <-> ['abc', None, 'def']
Dave> abc,"null",def <-> ['abc', 'null', 'def']
Dave> abc,,def <-> ['abc', '', 'def']
Skip> -1. Too much chance for confusion and mistakes. Quotes are for
Skip> quoting, not for data typing.
The point is to provide a round-trip for the DB-API. I think you
would have rocks in your head if you tried to use or create this data
with anything other than the CSV module and the DB-API.
Anyway, it was just a thought.
- Dave
--
http://www.object-craft.com.au
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic