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.

Author peter.otten
Recipients
Date 2003-08-21.15:22:50
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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) 
 
History
Date User Action Args
2007-08-23 14:16:16adminlinkissue792558 messages
2007-08-23 14:16:16admincreate