[Python-ideas] csv.DictReader could handle headers more intelligently.

Ethan Furman ethan at stoneleaf.us
Mon Jan 28 16:53:44 CET 2013


On 01/28/2013 04:21 AM, Mark Hackett wrote:
> On Friday 25 Jan 2013, Ethan Furman wrote:
>> We're going to have to agree to disagree on this point -- I think there
>> is a huge difference between reassigning a variable which is completely
>> under your control from losing entire columns of data from a file which
>> you may have never seen before.
>>
>
> But if you've never seen it before, how do you know that you're going to get a
> LIST in one column?

I don't, which is why an exception should be raised.

~Ethan~



More information about the Python-ideas mailing list