[docs] [issue16026] csv.DictReader argument names documented incorrectly
Peter Eisentraut
report at bugs.python.org
Mon Sep 24 18:53:03 CEST 2012
New submission from Peter Eisentraut:
The documentation for the csv.DictReader constructor is
.. class:: DictReader(csvfile, fieldnames=None, restkey=None, restval=None, dialect='excel', *args, **kwds)
but the implementation is
def __init__(self, f, fieldnames=None, restkey=None, restval=None, dialect="excel", *args, **kwds):
The name of the first argument is documented incorrectly, leading to surprise errors when attempting to use key word arguments.
----------
assignee: docs at python
components: Documentation, Library (Lib)
messages: 171161
nosy: docs at python, petere
priority: normal
severity: normal
status: open
title: csv.DictReader argument names documented incorrectly
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16026>
_______________________________________
More information about the docs
mailing list