[Python-bugs-list] [ python-Bugs-797844 ] csv.DictWriter --
inconsistent doc & code
SourceForge.net
noreply at sourceforge.net
Mon Sep 15 14:26:53 EDT 2003
Bugs item #797844, was opened at 2003-08-30 12:39
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=797844&group_id=5470
Category: Extension Modules
Group: Python 2.3
Status: Open
Resolution: None
>Priority: 6
Submitted By: Florent Rougon (frougon)
Assigned to: Skip Montanaro (montanaro)
Summary: csv.DictWriter -- inconsistent doc & code
Initial Comment:
csv.DictWriter has similar problems as csv.DictReader
as described in bug #792558.
The signature of csv.DictWriter.__init__ is:
def __init__(self, f, fieldnames, restval="",
extrasaction="raise",
dialect="excel", *args):
but the docs says:
class DictWriter(csvfile, fieldnames[, restval=""[,
extrasaction='raise'[, dialect='excel'[, fmtparam]]]])
Problems:
1. f != csvfile
2. The constructor does not accept **arguments, which
is a problem to pass along the (one or several)
fmtparam mentioned in the doc.
----------------------------------------------------------------------
Comment By: Skip Montanaro (montanaro)
Date: 2003-09-02 09:49
Message:
Logged In: YES
user_id=44345
I'm probably the right person for the DictWriter class. I've been
off the net or basically swamped much of the time lately what
with the stupid virus crap and a house move. I'll try to get to
it this week sometime.
S
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2003-08-30 15:51
Message:
Logged In: YES
user_id=33168
Andrew are you the right person to look at this and 797853?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=797844&group_id=5470
More information about the Python-bugs-list
mailing list