This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: csv.DictReader parms inconsistent with docs
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: skip.montanaro Nosy List: peter.otten, skip.montanaro
Priority: normal Keywords:

Created on 2003-08-21 15:22 by peter.otten, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (2)
msg17863 - (view) Author: Peter Otten (peter.otten) * Date: 2003-08-21 15:22
To conform with the documentation, csv.DictReader 
(and possibly DictWriter) should accept keyword 
arguments to specify a dialect on the fly and forward 
them to its reader instance: 
 
class DictReader: 
    def __init__(self, f, fieldnames, restkey=None, 
restval=None, 
                 dialect="excel", *args, **kwd): 
        self.fieldnames = fieldnames    # list of keys for 
the dict 
        self.restkey = restkey          # key to catch long 
rows 
        self.restval = restval          # default value for 
short rows 
        self.reader = reader(f, dialect, *args, **kwd) 
 
msg17864 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2004-04-16 03:14
Logged In: YES 
user_id=44345

looks like this was fixed in csv.py 1.9.  must have forgotten to 
close it.
History
Date User Action Args
2022-04-10 16:10:45adminsetgithub: 39099
2003-08-21 15:22:50peter.ottencreate