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 remi.lapeyre
Recipients Adeokkuw, lukasz.langa, remi.lapeyre, serhiy.storchaka
Date 2019-02-19.08:27:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:22remi.lapeyresetrecipients: + remi.lapeyre, lukasz.langa, serhiy.storchaka, Adeokkuw
2019-02-19 08:27:21remi.lapeyresetmessageid: <>
2019-02-19 08:27:21remi.lapeyrelinkissue35954 messages
2019-02-19 08:27:21remi.lapeyrecreate