Message171161
| Author |
petere |
| Recipients |
docs@python, petere |
| Date |
2012年09月24日.16:53:02 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1348505583.77.0.632308357055.issue16026@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年09月24日 16:53:03 | petere | set | recipients:
+ petere, docs@python |
| 2012年09月24日 16:53:03 | petere | set | messageid: <1348505583.77.0.632308357055.issue16026@psf.upfronthosting.co.za> |
| 2012年09月24日 16:53:03 | petere | link | issue16026 messages |
| 2012年09月24日 16:53:02 | petere | create |
|