This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tekkaman
Recipients
Date 2007-04-11.15:59:01
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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
History
Date User Action Args
2007-08-23 14:37:48adminlinkissue1431091 messages
2007-08-23 14:37:48admincreate