Message197249
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. |
|
Date |
User |
Action |
Args |
2013-09-08 11:10:45 | vajrasky | set | recipients:
+ vajrasky, ezio.melotti, r.david.murray, serhiy.storchaka, Thibault.Kruse |
2013-09-08 11:10:45 | vajrasky | set | messageid: <1378638645.09.0.66397100474.issue18829@psf.upfronthosting.co.za> |
2013-09-08 11:10:45 | vajrasky | link | issue18829 messages |
2013-09-08 11:10:44 | vajrasky | create | |
|