From 6cbcb932c161ac94fc16501168203366aba6a5f0 Mon Sep 17 00:00:00 2001 From: esadomer <54475303+esadomer@users.noreply.github.com> Date: Tue, 29 Sep 2026 17:32:59 +0300 Subject: [PATCH 1/2] Docs: Correct the default interpolation in RawConfigParser --- Doc/library/configparser.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst index 4d720176fcc334a..14f60e0e5f990dc 100644 --- a/Doc/library/configparser.rst +++ b/Doc/library/configparser.rst @@ -1311,7 +1311,7 @@ RawConfigParser Objects inline_comment_prefixes=None, strict=True, \ empty_lines_in_values=True, \ default_section=configparser.DEFAULTSECT, \ - interpolation=BasicInterpolation(), converters={}, \ + interpolation=Interpolation(), converters={}, \ allow_unnamed_section=False) Legacy variant of the :class:`ConfigParser`. It has interpolation From c224965923a46d125bcb4a57f89e5e6362aa6cbb Mon Sep 17 00:00:00 2001 From: esadomer <54475303+esadomer@users.noreply.github.com> Date: Tue, 29 Sep 2026 17:47:53 +0300 Subject: [PATCH 2/2] Docs: Use the public no-interpolation default in RawConfigParser --- Doc/library/configparser.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst index 14f60e0e5f990dc..46204ab46d0a364 100644 --- a/Doc/library/configparser.rst +++ b/Doc/library/configparser.rst @@ -1311,7 +1311,7 @@ RawConfigParser Objects inline_comment_prefixes=None, strict=True, \ empty_lines_in_values=True, \ default_section=configparser.DEFAULTSECT, \ - interpolation=Interpolation(), converters={}, \ + interpolation=None, converters={}, \ allow_unnamed_section=False) Legacy variant of the :class:`ConfigParser`. It has interpolation