Skip to content
Merged
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
6 changes: 4 additions & 2 deletions Doc/library/configparser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ from ``get()`` calls.
my_pictures: %(my_dir)s/Pictures

[Escape]
gain: 80%% # use a %% to escape the % sign (% is the only character that needs to be escaped)
# use a %% to escape the % sign (% is the only character that needs to be escaped):
gain: 80%%

In the example above, :class:`ConfigParser` with *interpolation* set to
``BasicInterpolation()`` would resolve ``%(home_dir)s`` to the value of
Expand Down Expand Up @@ -379,7 +380,8 @@ from ``get()`` calls.
my_pictures: ${my_dir}/Pictures

[Escape]
cost: $$80 # use a $$ to escape the $ sign ($ is the only character that needs to be escaped)
# use a $$ to escape the $ sign ($ is the only character that needs to be escaped):
cost: $$80

Values from other sections can be fetched as well:

Expand Down