[Python-checkins] python/dist/src/Doc/lib libcfgparser.tex, 1.34, 1.35

fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Mon May 17 22:25:54 EDT 2004


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}}}




More information about the Python-checkins mailing list