[docs] [issue20004] csv.DictReader classic class has a property with setter

Peter Otten report at bugs.python.org
Tue Dec 17 17:52:05 CET 2013

Peter Otten added the comment:

The proposed patch looks fine to me.

And for the record, I don't think setting fieldnames should be promoted in the 3.x documentation. Along the lines of Eric's suggestion I should have written something like

>>> import csv
>>> with open("tmp.csv") as f:
...     for i in range(2):
...             print next(csv.DictReader(f))
{'alpha': '1', 'beta': '2'}
{'epsilon': '5', 'gamma': '3', 'delta': '4'}

which would have spared you the hustle ;)

Thank you for your effort!


Python tracker <report at bugs.python.org>

More information about the docs mailing list