diff options
author | Fred Drake <fdrake@acm.org> | 2000-09-27 22:48:44 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-09-27 22:48:44 (GMT) |
commit | 33dde92ecfa4e2afe883a9cd4630ed83839bb26b (patch) | |
tree | eac04cc35c079edf28510b0744b803f27f02f9e1 /Doc | |
parent | 8ef6767e004267ccb4bbbe0a7762d8d69a8c62c6 (diff) | |
download | cpython-33dde92ecfa4e2afe883a9cd4630ed83839bb26b.zip cpython-33dde92ecfa4e2afe883a9cd4630ed83839bb26b.tar.gz cpython-33dde92ecfa4e2afe883a9cd4630ed83839bb26b.tar.bz2 |
Update the documentation for ConfigParser to match the recent changes.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libcfgparser.tex | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Doc/lib/libcfgparser.tex b/Doc/lib/libcfgparser.tex index 1905e62..28e0f07 100644 --- a/Doc/lib/libcfgparser.tex +++ b/Doc/lib/libcfgparser.tex @@ -47,8 +47,8 @@ Return a new instance of the \class{ConfigParser} class. When \var{defaults} is given, it is initialized into the dictionary of intrinsic defaults. They keys must be strings, and the values must be appropriate for the \samp{\%()s} string interpolation. Note that -\var{__name__} is always an intrinsic default; its value is the -section name. +\var{__name__} is an intrinsic default; its value is the section name, +and will override any value provided in \var{defaults}. \end{classdesc} \begin{excdesc}{NoSectionError} @@ -70,6 +70,11 @@ section. Exception raised when problems occur performing string interpolation. \end{excdesc} +\begin{excdesc}{InterpolationDepthError} +Exception raised when string interpolation cannot be completed because +the number of iterations exceeds \constant{MAX_INTERPOLATION_DEPTH}. +\end{excdesc} + \begin{excdesc}{MissingSectionHeaderError} Exception raised when attempting to parse a file which has no section headers. @@ -79,6 +84,12 @@ headers. Exception raised when errors occur attempting to parse a file. \end{excdesc} +\begin{datadesc}{MAX_INTERPOLATION_DEPTH} +The maximum depth for recursive interpolation for \method{get()} when +the \var{raw} parameter is false. Setting this does not change the +allowed recursion depth. +\end{datadesc} + \begin{seealso} \seemodule{shlex}{Support for a creating \UNIX{} shell-like |