Skip to content

Commit 4320115

Browse files
[3.10] argparse docs: normalize constant references (#98765) (#98808)
`argparse` docs: normalize constant references (#98765) (cherry picked from commit b27b57c) Co-authored-by: Skip Montanaro <[email protected]>
1 parent a3b06fd commit 4320115

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Doc/library/argparse.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,10 @@ ArgumentParser objects
154154
* usage_ - The string describing the program usage (default: generated from
155155
arguments added to parser)
156156

157-
* description_ - Text to display before the argument help (default: none)
157+
* description_ - Text to display before the argument help
158+
(by default, no text)
158159

159-
* epilog_ - Text to display after the argument help (default: none)
160+
* epilog_ - Text to display after the argument help (by default, no text)
160161

161162
* parents_ - A list of :class:`ArgumentParser` objects whose arguments should
162163
also be included
@@ -1831,8 +1832,8 @@ FileType objects
18311832
Namespace(out=<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'>, raw=<_io.FileIO name='raw.dat' mode='wb'>)
18321833

18331834
FileType objects understand the pseudo-argument ``'-'`` and automatically
1834-
convert this into ``sys.stdin`` for readable :class:`FileType` objects and
1835-
``sys.stdout`` for writable :class:`FileType` objects::
1835+
convert this into :data:`sys.stdin` for readable :class:`FileType` objects and
1836+
:data:`sys.stdout` for writable :class:`FileType` objects::
18361837

18371838
>>> parser = argparse.ArgumentParser()
18381839
>>> parser.add_argument('infile', type=argparse.FileType('r'))

0 commit comments

Comments
 (0)