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

Skip to content

Commit ebe2a12

Browse files
committed
Incorporate changes for patched version of ConfigParser.
1 parent e6506e7 commit ebe2a12

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

Doc/lib/libcfgparser.tex

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ \section{\module{ConfigParser} ---
1717
with continuations in the style of \rfc{959}. The optional values
1818
can contain format strings which refer to other values in the same
1919
section, or values in a special \code{DEFAULT} section. Additional
20-
defaults can provided upon instantiation of the class.
20+
defaults can be provided upon initialization and retrieval.
2121

2222
For example:
2323

@@ -29,7 +29,9 @@ \section{\module{ConfigParser} ---
2929
expansions are done late, on demand.
3030

3131
Intrinsic defaults can be specified by passing them into the
32-
\class{ConfigParser} constructor as a dictionary.
32+
\class{ConfigParser} constructor as a dictionary. Additional defaults
33+
may be passed into the \method{get} method which will override all
34+
others.
3335

3436
\begin{classdesc}{ConfigParser}{\optional{defaults}}
3537
Return a new instance of the \class{ConfigParser} class. When
@@ -66,6 +68,7 @@ \section{\module{ConfigParser} ---
6668
Exception raised when errors occur attempting to parse a file.
6769
\end{excdesc}
6870

71+
6972
\subsection{ConfigParser Objects \label{ConfigParser-objects}}
7073

7174
\class{ConfigParser} instances have the following methods:
@@ -91,11 +94,11 @@ \subsection{ConfigParser Objects \label{ConfigParser-objects}}
9194
Read and parse a list of filenames.
9295
\end{methoddesc}
9396

94-
\begin{methoddesc}{get}{section, option\optional{, raw}}
97+
\begin{methoddesc}{get}{section, option\optional{, raw\optional{, vars}}}
9598
Get an \var{option} value for the provided \var{section}. All the
9699
\samp{\%} interpolations are expanded in the return values, based on
97-
the defaults passed into the constructor, unless the \var{raw}
98-
argument is true.
100+
the defaults passed into the constructor, as well as the options
101+
\var{vars} provided, unless the \var{raw} argument is true.
99102
\end{methoddesc}
100103

101104
\begin{methoddesc}{getint}{section, option}

0 commit comments

Comments
 (0)