Skip to content
Permalink
Browse files

bpo-35838: document optionxform must be idempotent (GH-12656)

  • Loading branch information
methane committed Apr 2, 2019
1 parent e6a0e80 commit 04694a306b8f4ab54ef5fc4ba673c26fa53b0ac1
Showing with 6 additions and 0 deletions.
  1. +6 −0 Doc/library/configparser.rst
@@ -721,6 +721,12 @@ be overridden by subclasses or by attribute assignment.
>>> list(custom['Section2'].keys())
['AnotherKey']
.. note::
The optionxform function transforms option names to a canonical form.
This should be an idempotent function: if the name is already in
canonical form, it should be returned unchanged.


.. attribute:: ConfigParser.SECTCRE

A compiled regular expression used to parse section headers. The default

0 comments on commit 04694a3

Please sign in to comment.
You can’t perform that action at this time.