New submission from leveque email@example.com:
docs.python.org/3/library/configparser.html#exceptions does not mention KeyError which is mentioned under https://docs.python.org/3/library/configparser.html#mapping-protocol-access and https://docs.python.org/3/library/configparser.html#customizing-parser-behav....
Could it be added ?
assignee: docs@python components: Documentation messages: 376551 nosy: docs@python, leveque priority: normal severity: normal status: open title: Request for docs.python.org/3/library/configparser.html#exceptions improvement type: enhancement versions: Python 3.10, Python 3.8, Python 3.9
Terry J. Reedy firstname.lastname@example.org added the comment:
https://docs.python.org/3/library/configparser.html#exceptions, like similar sections for other module docs, lists and explains the non-builtin exceptions defined and used in the module. Functions in all modules can potentially raise various builtin exceptions, and some of these may be mentioned. They are all documented in a beginning chapter the library doc, which users are expected to be familiar with.
That said, I vaguely remember at least some Exceptions sections beginning with some like 'Additional exceptions defined in this module.' If you or someone thinks it worthwhile enough to check other modules, using the left sidebar ToC, to find such examples, I will consider making a PR.