[docs] [issue26116] CSV-module. The example code don't work. Have to be: reader = csv.reader(csvfile, dialect=dialect)

Georg Brandl report at bugs.python.org
Fri Jan 15 02:25:16 EST 2016


Georg Brandl added the comment:

Thanks!  Now the reason is clear: You use csv.DictReader instead of csv.reader. csv.DictReader has a different argument list - for DictReader the second argument is `fieldnames`.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26116>
_______________________________________


More information about the docs mailing list