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 vajrasky
Recipients Thibault.Kruse, ezio.melotti, r.david.murray, serhiy.storchaka, vajrasky
Date 2013-09-08.11:10:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378638645.09.0.66397100474.issue18829@psf.upfronthosting.co.za>
In-reply-to
Content
Well, what about None?

$ python3 -c 'import csv; reader = csv.reader("foo", delimiter=None)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: delimiter must be set

English grammatically speaking, we should get this kind of error:
ValueError: "delimiter" must be string, not None

But computer science-ly speaking, the exception message "delimiter must be set" is correct because setting null or None value to a variable can be considered as same as unsetting that variable, hence error message "must be set".

And I would argue the empty string can be considered as one of a kind with None in this case.

But we'll see other people's opinions. I am also not sure about this case.
History
Date User Action Args
2013-09-08 11:10:45vajraskysetrecipients: + vajrasky, ezio.melotti, r.david.murray, serhiy.storchaka, Thibault.Kruse
2013-09-08 11:10:45vajraskysetmessageid: <1378638645.09.0.66397100474.issue18829@psf.upfronthosting.co.za>
2013-09-08 11:10:45vajraskylinkissue18829 messages
2013-09-08 11:10:44vajraskycreate