[issue27497] csv module: Add return value to DictWriter.writeheader

Ashish Nitin Patil report at bugs.python.org
Sun Sep 4 13:09:43 EDT 2016


Ashish Nitin Patil added the comment:

Also, I noticed in the documentation for `csv.DictWriter` (https://docs.python.org/3/library/csv.html#csv.DictWriter.writeheader) does not contain the following line -
     to the writer's file object, formatted according to the current dialect.
Although it is there for the other 2 methods (`writerow` & `writerows`) and since `writeheader` uses `writerow` in turn, I believe the said line should be included for the `writeheader` documentation as well. I have created another patch with both the changes. I ran the Doc build (make html) and have checked the addition of the said lines looks good & does not break anything.

I can make another thread if required, if you feel both the changes can't be accommodated in the same issue.

----------
Added file: http://bugs.python.org/file44365/issue_27497_add_return_to_DictWriter_writeheader_with_documentation_changes.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27497>
_______________________________________


More information about the Python-bugs-list mailing list