[issue20351] Add doc examples for DictReader and DictWriter
New submission from Charles-Axel Dein: IMO csv.DictWriter and csv.DictReader provides a nicer interface for complex CSV file. I see some people reinventing the DictReader and DictWriter pretty frequently, because when they rapidly scan the documentation all examples are about csv.reader and csv.writer. This patch adds examples. ---------- assignee: docs@python components: Documentation files: add_csvdict_examples.patch keywords: patch messages: 208835 nosy: charlax, docs@python priority: normal severity: normal status: open title: Add doc examples for DictReader and DictWriter Added file: http://bugs.python.org/file33629/add_csvdict_examples.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Changes by Moritz Neeb <nt4u@kpvn.de>: ---------- nosy: +zormit _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Changes by Martin Panter <vadmium+py@gmail.com>: ---------- nosy: +vadmium _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Changes by Ezio Melotti <ezio.melotti@gmail.com>: ---------- nosy: +ezio.melotti stage: -> patch review type: -> enhancement versions: +Python 2.7, Python 3.3, Python 3.4, Python 3.5 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Charles-Axel Dein added the comment: Updated patch following review. ---------- Added file: http://bugs.python.org/file34110/add_csvdict_examples.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Charles-Axel Dein added the comment: Any update? ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Charles-Axel Dein added the comment: Hey - is there anything else I need to do here? ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Charles-Axel Dein added the comment: New version of the patch. ---------- Added file: http://bugs.python.org/file34969/add_csvdict_examples.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Changes by Berker Peksag <berker.peksag@gmail.com>: ---------- nosy: +berker.peksag versions: -Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Charles-Axel Dein added the comment: Updated patch following review. ---------- Added file: http://bugs.python.org/file35790/add_csvdict_examples.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Changes by Raymond Hettinger <raymond.hettinger@gmail.com>: ---------- assignee: docs@python -> rhettinger nosy: +rhettinger _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Charles-Axel Dein added the comment: Anything else I need to do? ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Raymond Hettinger added the comment:
Anything else I need to do?
Nothing else. I've got it from here :-) ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Charles-Axel Dein added the comment: Sounds good. Do you know when this will get merged? ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Roundup Robot added the comment: New changeset 268ceaa78cf9 by Berker Peksag in branch '3.4': Issue #20351: Add examples for csv.DictReader and csv.DictWriter. https://hg.python.org/cpython/rev/268ceaa78cf9 New changeset c2b36196b7f5 by Berker Peksag in branch 'default': Issue #20351: Add examples for csv.DictReader and csv.DictWriter. https://hg.python.org/cpython/rev/c2b36196b7f5 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Roundup Robot added the comment: New changeset e504c3bc6897 by Berker Peksag in branch '2.7': Issue #20351: Add examples for csv.DictReader and csv.DictWriter. https://hg.python.org/cpython/rev/e504c3bc6897 ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
Berker Peksag added the comment: Thanks for the patch, Charles-Axel. ---------- assignee: rhettinger -> berker.peksag resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue20351> _______________________________________
participants (7)
-
Berker Peksag -
Charles-Axel Dein -
Ezio Melotti -
Martin Panter -
Moritz Neeb -
Raymond Hettinger -
Roundup Robot