[Python-checkins] python/dist/src/Doc/lib libcfgparser.tex, 1.35,
1.36
fdrake at users.sourceforge.net
fdrake at users.sourceforge.net
Mon May 17 23:29:54 EDT 2004
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11581/Doc/lib
Modified Files:
libcfgparser.tex
Log Message:
ConfigParser:
- don't allow setting options to non-string values; raise TypeError
when the value is set, instead of raising an arbitrary exception
later (such as when string interpolation is performed)
- add tests, documentation
(closes SF bug #810843)
Index: libcfgparser.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcfgparser.tex,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** libcfgparser.tex 18 May 2004 02:25:51 -0000 1.35
--- libcfgparser.tex 18 May 2004 03:29:51 -0000 1.36
***************
*** 239,243 ****
\begin{methoddesc}{set}{section, option, value}
If the given section exists, set the given option to the specified value;
! otherwise raise \exception{NoSectionError}.
\versionadded{1.6}
\end{methoddesc}
--- 239,245 ----
\begin{methoddesc}{set}{section, option, value}
If the given section exists, set the given option to the specified value;
! otherwise raise \exception{NoSectionError}. \var{value} must be a
! string (\class{str} or \class{unicode}); if not, \exception{TypeError}
! is raised.
\versionadded{1.6}
\end{methoddesc}
More information about the Python-checkins
mailing list