summaryrefslogtreecommitdiffstats
path: root/Lib/csv.py
Commit message (Collapse)AuthorAgeFilesLines
* Make the fieldnames argument optional in the DictReader. If self.fieldnamesSkip Montanaro2003-10-031-1/+5
| | | | | | | | | is None, the next row read is used as the fieldnames. In the common case, this means the programmer doesn't need to know the fieldnames ahead of time. The first row of the file will be used. In the uncommon case, this means the programmer can set the reader's fieldnames attribute to None at any time and have the next row read as the next set of fieldnames, so a csv file can contain several "sections", each with different fieldnames.
* **kwds arg was missing from __init__ for Dict{Reader,Writer} classes.Skip Montanaro2003-09-061-4/+4
| | | | will backport.
* use the long names for re compilation options; this makes it easier toFred Drake2003-09-021-1/+1
| | | | figure out what the code is doing
* One more multiple exception catch should be in a tuple.Raymond Hettinger2003-06-121-1/+1
|
* The multiple exception catch should be in a tuple.Raymond Hettinger2003-06-121-1/+1
|
* SF Patch #744104: Remove eval() from csvRaymond Hettinger2003-06-121-17/+18
| | | | | | | | | | | Eliminates the eval() step in the csv module resulting in better security, more clarity, and a little speed. The idea is to make successive attempts to coerce the string to a python type: int(s), long(s), float(s), etc. As a by-product, eliminates a bare 'except' statement.
* * Correct Sniffer doc to correspond to the implementation.Skip Montanaro2003-05-191-7/+9
| | | | | * Add optional delimiters arg to Sniffer.sniff() which restricts the set of candidate field delimiters.
* rework Sniffer api significantlySkip Montanaro2003-04-251-41/+26
|
* Attempt to deal with some obvious errors in the code. These were allFred Drake2003-04-251-15/+14
| | | | | | | | | | due to using a single module-level namespace where multiple namespaces were used before. There *really* need to be tests for the sniffer stuff. This could have been avoided. Skip, please review, and add sniffer tests!
* cvs is going to be a module againSkip Montanaro2003-04-241-0/+440