Commit a5b06f3b authored by Eric S. Raymond's avatar Eric S. Raymond

Document the second round of ConfigParser changes.

parent 9ea6ef75
...@@ -160,8 +160,21 @@ If the given section exists, set the given option to the specified value; ...@@ -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) otherwise raise \exception{NoSectionError}. (New in 1.6)
\end{methoddesc} \end{methoddesc}
\begin{methoddesc}{write}{fileobect} \begin{methoddesc}{write}{fileobject}
Write a representation of the configuration to the specified file Write a representation of the configuration to the specified file
object. This representation can be parsed by a future \method{read()} object. This representation can be parsed by a future \method{read()}
call. (New in 1.6) call. (New in 1.6)
\end{methoddesc} \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}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment