Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Doc/library/configparser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,20 @@ provide equivalent :meth:`~ConfigParser.getint` and
:meth:`~ConfigParser.getfloat` methods. You can register your own
converters and customize the provided ones. [1]_

Section names are also stored as strings and need to be converted
manually when reading a section:

.. doctest::

>>> config[123] = {}
>>> config[123]
Traceback (most recent call last):
...
KeyError: 123
>>> config['123']
<Section: 123>


Fallback Values
---------------

Expand Down