mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-20923 : [doc] Explain ConfigParser 'valid section name' and .SECTCRE (GH-31413)
This commit is contained in:
parent
9a0d941df4
commit
bba8008f99
1 changed files with 3 additions and 0 deletions
|
@ -267,6 +267,9 @@ out. Values can also span multiple lines, as long as they are indented deeper
|
|||
than the first line of the value. Depending on the parser's mode, blank lines
|
||||
may be treated as parts of multiline values or ignored.
|
||||
|
||||
By default, a valid section name can be any string that does not contain '\\n' or ']'.
|
||||
To change this, see :attr:`ConfigParser.SECTCRE`.
|
||||
|
||||
Configuration files may include comments, prefixed by specific
|
||||
characters (``#`` and ``;`` by default [1]_). Comments may appear on
|
||||
their own on an otherwise empty line, possibly indented. [1]_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue