Message27510
Problem is still there as of Python 2.4.3.
Trying to read in a file whose lines have a different number of fields, I get:
Traceback (most recent call last):
File "../myscript.py", line 59, in ?
main()
File "../myscript.py", line 30, in main
reader = csv.reader(fin, dialect)
TypeError: bad argument type for built-in operation
where "dialect" has been sniffed by feeding the first two lines to the Sniffer.
What I expect is to either:
1. get different sized rows, with no exception raised
2. get a csv.Error instead of the TypeError above
Thanks |
|
Date |
User |
Action |
Args |
2007-08-23 14:37:48 | admin | link | issue1431091 messages |
2007-08-23 14:37:48 | admin | create | |
|