[issue26112] Error on example using "dialect" parameter. have to be: "dialect=dialect"
Василь Коломієць
report at bugs.python.org
Thu Jan 14 14:29:52 EST 2016
New submission from Василь Коломієць:
with open('example.csv') as csvfile:
dialect = csv.Sniffer().sniff(csvfile.read(1024))
csvfile.seek(0)
reader = csv.reader(csvfile, dialect)
# ... process CSV file contents here ...
--
have to be:
...
reader = csv.reader(csvfile, dialect=dialect)
# ... process CSV file contents here ...
It's here:
https://docs.python.org/3.4/library/csv.html
----------
assignee: docs at python
components: Documentation
messages: 258214
nosy: docs at python, Василь Коломієць
priority: normal
severity: normal
status: open
title: Error on example using "dialect" parameter. have to be: "dialect=dialect"
type: enhancement
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26112>
_______________________________________
More information about the Python-bugs-list
mailing list