Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3c10c68c
Commit
3c10c68c
authored
Sep 28, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use consistent version annotations instead of something ad hoc.
parent
0f9bfd3d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Doc/lib/libcfgparser.tex
Doc/lib/libcfgparser.tex
+7
-4
No files found.
Doc/lib/libcfgparser.tex
View file @
3c10c68c
...
...
@@ -128,7 +128,8 @@ Returns a list of options available in the specified \var{section}.
\begin{methoddesc}
{
has
_
option
}{
section, option
}
If the given section exists, and contains the given option. return 1;
otherwise return 0. (New in 1.6)
otherwise return 0.
\versionadded
{
1.6
}
\end{methoddesc}
\begin{methoddesc}
{
read
}{
filenames
}
...
...
@@ -169,20 +170,22 @@ for the option are \samp{0} and \samp{1}, any others will raise
\begin{methoddesc}
{
set
}{
section, option, value
}
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
}
.
\versionadded
{
1.6
}
\end{methoddesc}
\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)
call.
\versionadded
{
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)
\versionadded
{
1.6
}
\end{methoddesc}
\begin{methoddesc}
{
remove
_
section
}{
section
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment