summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-07-14 15:00:02 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2000-07-14 15:00:02 (GMT)
commitf868de64915a7eaaeea641c57cb88a3910e49d4a (patch)
treeffc942253d92dfd332fcfc217d0e0f88afe2d269 /Doc/lib
parent70c21a1603091d58036ea6b91f106496d20f12f4 (diff)
downloadcpython-f868de64915a7eaaeea641c57cb88a3910e49d4a.zip
cpython-f868de64915a7eaaeea641c57cb88a3910e49d4a.tar.gz
cpython-f868de64915a7eaaeea641c57cb88a3910e49d4a.tar.bz2
Document the second round of ConfigParser changes.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libcfgparser.tex15
1 files changed, 14 insertions, 1 deletions
diff --git a/Doc/lib/libcfgparser.tex b/Doc/lib/libcfgparser.tex
index 32851f5..805767d 100644
--- a/Doc/lib/libcfgparser.tex
+++ b/Doc/lib/libcfgparser.tex
@@ -160,8 +160,21 @@ If the given section exists, set the given option to the specified value;
otherwise raise \exception{NoSectionError}. (New in 1.6)
\end{methoddesc}
-\begin{methoddesc}{write}{fileobect}
+\begin{methoddesc}{write}{fileobject}
Write a representation of the configuration to the specified file
object. This representation can be parsed by a future \method{read()}
call. (New in 1.6)
\end{methoddesc}
+
+\begin{methoddesc}{remove_option}{section, option}
+Remove the specified \var{option} from the specified \var{section}.
+If the section does not exist, raise \exception{NoSectionError}.
+If the option existed to be removed, return 1; otherwise return 0.
+(New in 1.6)
+\end{methoddesc}
+
+\begin{methoddesc}{remove_section}{section}
+Remove the specified \var{section} from the configuration.
+If the section in fact existed, return 1. Otherwise return 0.
+\end{methoddesc}
+