Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 33dde92

Browse files
committed
Update the documentation for ConfigParser to match the recent changes.
1 parent 8ef6767 commit 33dde92

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

Doc/lib/libcfgparser.tex

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ \section{\module{ConfigParser} ---
4747
\var{defaults} is given, it is initialized into the dictionary of
4848
intrinsic defaults. They keys must be strings, and the values must be
4949
appropriate for the \samp{\%()s} string interpolation. Note that
50-
\var{__name__} is always an intrinsic default; its value is the
51-
section name.
50+
\var{__name__} is an intrinsic default; its value is the section name,
51+
and will override any value provided in \var{defaults}.
5252
\end{classdesc}
5353

5454
\begin{excdesc}{NoSectionError}
@@ -70,6 +70,11 @@ \section{\module{ConfigParser} ---
7070
Exception raised when problems occur performing string interpolation.
7171
\end{excdesc}
7272

73+
\begin{excdesc}{InterpolationDepthError}
74+
Exception raised when string interpolation cannot be completed because
75+
the number of iterations exceeds \constant{MAX_INTERPOLATION_DEPTH}.
76+
\end{excdesc}
77+
7378
\begin{excdesc}{MissingSectionHeaderError}
7479
Exception raised when attempting to parse a file which has no section
7580
headers.
@@ -79,6 +84,12 @@ \section{\module{ConfigParser} ---
7984
Exception raised when errors occur attempting to parse a file.
8085
\end{excdesc}
8186

87+
\begin{datadesc}{MAX_INTERPOLATION_DEPTH}
88+
The maximum depth for recursive interpolation for \method{get()} when
89+
the \var{raw} parameter is false. Setting this does not change the
90+
allowed recursion depth.
91+
\end{datadesc}
92+
8293

8394
\begin{seealso}
8495
\seemodule{shlex}{Support for a creating \UNIX{} shell-like

0 commit comments

Comments
 (0)