It's still rather surprising (and, in many cases, undesired). I would
">

(original) (raw)

On Wed, Jan 23, 2013 at 7:15 PM, Antoine Pitrou <solipsis@pitrou.net> wrote:
It's still rather surprising (and, in many cases, undesired). I would
suggest adding a parameter to DictReader to raise an exception when
there are duplicate column headers.

Regards

Antoine.


Completely agree, it's a big surprise and a quiet bug.�

This is one of those changes we should remember for python 4.0\. Until 4.0, give an option to raise an exception upon duplicates. After 4.0 throw an exception on duplicate headers by default with an option to ignore them.

Yuval