Message335900
Other methods validate explicitly their arguments with _validate_value_types for example.
Here it raises KeyError which does not seem to be the appropriate exception. ConfigParser implementing the mapping protocol it seems weird to me to have
>>> a = 123
>>> config[a] = {}
>>> config[a]
KeyError: 123
I would have prefered a TypeError to be raised on __setitem__ but this is now documented behavior. |
|
Date |
User |
Action |
Args |
2019-02-19 08:27:22 | remi.lapeyre | set | recipients:
+ remi.lapeyre, lukasz.langa, serhiy.storchaka, Adeokkuw |
2019-02-19 08:27:21 | remi.lapeyre | set | messageid: <1550564841.98.0.0806945923021.issue35954@roundup.psfhosted.org> |
2019-02-19 08:27:21 | remi.lapeyre | link | issue35954 messages |
2019-02-19 08:27:21 | remi.lapeyre | create | |
|