Author vajrasky
Recipients Thibault.Kruse, r.david.murray, serhiy.storchaka, vajrasky
Date 2013-08-26.15:26:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377530808.51.0.0126334852447.issue18829@psf.upfronthosting.co.za>
In-reply-to
Content
Apparently, other attributes of the csv dialect beside delimiter, such as escapechar and quotechar share the same problem.

>>> import _csv
>>> _csv.reader('foo', quotechar=b'"')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: quotechar must be set if quoting enabled
>>> _csv.reader('foo', escapechar=b'+')
<_csv.reader object at 0x7fa85d7847d0>Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: bad argument type for built-in operation

My patch already fixed the problem, only lacked the unit test. But since this ticket is about delimiter, I'll create the unit test for quotechar and escapechar in separate ticket after this ticket has been closed.
History
Date User Action Args
2013-08-26 15:26:48vajraskysetrecipients: + vajrasky, r.david.murray, serhiy.storchaka, Thibault.Kruse
2013-08-26 15:26:48vajraskysetmessageid: <1377530808.51.0.0126334852447.issue18829@psf.upfronthosting.co.za>
2013-08-26 15:26:48vajraskylinkissue18829 messages
2013-08-26 15:26:48vajraskycreate