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

Serhiy Storchaka storchaka at gmail.com
Thu Jan 24 21:35:14 CET 2013


On 23.01.13 03:51, alex23 wrote:
>      with open('malformed.csv','rb') as csvfile:
>          csvlines = list(l for l in csvfile if l.strip())
>          csvreader = DictReader(csvlines)

csvreader = DictReader(l for l in csvfile if l.strip())





More information about the Python-ideas mailing list