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
dbdbaaad
Commit
dbdbaaad
authored
Jun 15, 1999
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Several new index entries to make find this easier.
Noted that name=value is allowed in addition to name: value.
parent
9fec7fee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
Doc/lib/libcfgparser.tex
Doc/lib/libcfgparser.tex
+11
-9
No files found.
Doc/lib/libcfgparser.tex
View file @
dbdbaaad
...
...
@@ -5,20 +5,22 @@
\modulesynopsis
{
Configuration file parser.
}
\sectionauthor
{
Christopher G. Petrilli
}{
petrilli@amber.org
}
This module defines the class
\class
{
ConfigParser
}
. The
\class
{
ConfigParser
}
class implements a basic configuration file
This module defines the class
\class
{
ConfigParser
}
.
\indexii
{
.ini
}{
file
}
\indexii
{
configuration
}{
file
}
\index
{
ini file
}
\index
{
Windows ini file
}
The
\class
{
ConfigParser
}
class implements a basic configuration file
parser language which provides a structure similar to what you would
find on Microsoft Windows INI files. You can use this to write Python
find on Microsoft Windows INI files. You can use this to write Python
programs which can be customized by end users easily.
The configuration file consists of sections, lead by a
\samp
{
[section]
}
header and followed by
\samp
{
name: value
}
entries,
with continuations in the style of
\rfc
{
822
}
. The optional values
can contain format strings which refer to other values in the same
section, or values in a special
\code
{
DEFAULT
}
section. Addition
al
defaults can be provided upon initialization and retrieval. Lines
beginning with
\character
{
\#
}
are ignored and may be used to provide
comments.
with continuations in the style of
\rfc
{
822
}
;
\samp
{
name=value
}
is
also accepted. The optional values can contain format strings which
refer to other values in the same section, or values in a speci
al
\code
{
DEFAULT
}
section. Additional defaults can be provided upon
initialization and retrieval. Lines beginning with
\character
{
\#
}
are
ignored and may be used to provide
comments.
For example:
...
...
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