Skip to content

Commit 04694a3

Browse files
authored
bpo-35838: document optionxform must be idempotent (GH-12656)
1 parent e6a0e80 commit 04694a3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/library/configparser.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,12 @@ be overridden by subclasses or by attribute assignment.
721721
>>> list(custom['Section2'].keys())
722722
['AnotherKey']
723723

724+
.. note::
725+
The optionxform function transforms option names to a canonical form.
726+
This should be an idempotent function: if the name is already in
727+
canonical form, it should be returned unchanged.
728+
729+
724730
.. attribute:: ConfigParser.SECTCRE
725731

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

0 commit comments

Comments
 (0)