New submission from Matthias Klose: forwarded from Debian http://bugs.debian.org/699463
The csv.DictReader object doesn't handle multiple columns with the same name very well - it simply over-writes the first column-with-same-name with the contents of the second column-with-same-name e.g.: foo,bar,foo 1,2,3 on reading this file, ["foo"] would contain 3. IMO, the correct behaviour is for csv.DictReader to emit an error if the header contains more than one column with the same name. ---------- components: Library (Lib) messages: 185158 nosy: doko priority: normal severity: normal status: open title: sv.DictReader should fail if >1 column has the same name type: behavior versions: Python 2.7, Python 3.3, Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17537> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com