jdunck / python-unicodecsv

Python2's stdlib csv module is nice, but it doesn't support unicode. This module is a drop-in replacement which *does*. If you prefer python 3's semantics but need support in py2, you probably want https://github.com/ryanhiebert/backports.csv
Other
594 stars 87 forks source link

DictReader behaviour differs from csv #82

Open schinckel opened 7 years ago

schinckel commented 7 years ago

From the (hacky, I'll admit) StackOverflow answer https://stackoverflow.com/a/39110711/188, you should be able to swizzle the fieldnames attribute, and stuff should still work.

When using unicodecsv.DictReader, this behaviour does not apply: the yielded dicts still have the original keys.