Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
890423f7
Commit
890423f7
authored
Oct 24, 2018
by
Ned Batchelder
Committed by
Victor Stinner
Oct 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configparser doc: Properly label ConfigParser attributes (GH-9930)
parent
78401f71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/library/configparser.rst
Doc/library/configparser.rst
+3
-3
No files found.
Doc/library/configparser.rst
View file @
890423f7
...
@@ -663,7 +663,7 @@ More advanced customization may be achieved by overriding default values of
...
@@ -663,7 +663,7 @@ More advanced customization may be achieved by overriding default values of
these parser attributes. The defaults are defined on the classes, so they may
these parser attributes. The defaults are defined on the classes, so they may
be overridden by subclasses or by attribute assignment.
be overridden by subclasses or by attribute assignment.
.. attribute:: BOOLEAN_STATES
.. attribute::
ConfigParser.
BOOLEAN_STATES
By default when using :meth:`~ConfigParser.getboolean`, config parsers
By default when using :meth:`~ConfigParser.getboolean`, config parsers
consider the following values ``True``: ``'1'``, ``'yes'``, ``'true'``,
consider the following values ``True``: ``'1'``, ``'yes'``, ``'true'``,
...
@@ -686,7 +686,7 @@ be overridden by subclasses or by attribute assignment.
...
@@ -686,7 +686,7 @@ be overridden by subclasses or by attribute assignment.
Other typical Boolean pairs include ``accept``/``reject`` or
Other typical Boolean pairs include ``accept``/``reject`` or
``enabled``/``disabled``.
``enabled``/``disabled``.
.. method:: optionxform(option)
.. method::
ConfigParser.
optionxform(option)
This method transforms option names on every read, get, or set
This method transforms option names on every read, get, or set
operation. The default converts the name to lowercase. This also
operation. The default converts the name to lowercase. This also
...
@@ -717,7 +717,7 @@ be overridden by subclasses or by attribute assignment.
...
@@ -717,7 +717,7 @@ be overridden by subclasses or by attribute assignment.
>>> list(custom['Section2'].keys())
>>> list(custom['Section2'].keys())
['AnotherKey']
['AnotherKey']
.. attribute:: SECTCRE
.. attribute::
ConfigParser.
SECTCRE
A compiled regular expression used to parse section headers. The default
A compiled regular expression used to parse section headers. The default
matches ``[section]`` to the name ``"section"``. Whitespace is considered
matches ``[section]`` to the name ``"section"``. Whitespace is considered
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment