[Python-checkins] python/dist/src/Doc/lib libcfgparser.tex, 1.34, 1.35 (original) (raw)
fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Mon May 17 22:25:54 EDT 2004
- Previous message: [Python-checkins] python/dist/src/Lib/test test_cfgparser.py, 1.20, 1.21
- Next message: [Python-checkins] python/dist/src/Doc/lib libcfgparser.tex, 1.35, 1.36
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvsroot/python/python/dist/src/Doc/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1097/Doc/lib
Modified Files: libcfgparser.tex Log Message: ConfigParser:
- ensure that option names in interpolations are handled by self.optionxform in the same way that other references to option names
- add tests, documentation (closes SF bug #857881, patch #865455)
Index: libcfgparser.tex
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcfgparser.tex,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** libcfgparser.tex 8 Jan 2004 15:01:08 -0000 1.34 --- libcfgparser.tex 18 May 2004 02:25:51 -0000 1.35
*** 63,66 **** --- 63,73 ---- \var{name} is an intrinsic default; its value is the section name, and will override any value provided in \var{defaults}.
+
- All option names used in interpolation will be passed through the
- \method{optionxform()} method just like any other option name
- reference. For example, using the default implementation of
- \method{optionxform()} (which converts option names to lower case),
- the values \samp{foo %(bar)s} and \samp{foo %(BAR)s} are
- equivalent. \end{classdesc}
*** 272,275 **** --- 279,284 ---- The \class{ConfigParser} class extends some methods of the \class{RawConfigParser} interface, adding some optional arguments.
The \class{SafeConfigParser} class implements the same extended
interface.
\begin{methoddesc}{get}{section, option\optional{, raw\optional{, vars}}}
- Previous message: [Python-checkins] python/dist/src/Lib/test test_cfgparser.py, 1.20, 1.21
- Next message: [Python-checkins] python/dist/src/Doc/lib libcfgparser.tex, 1.35, 1.36
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]