mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
[3.13] Doc: Note that pydoc uses and prefers `MANPAGER
` (GH-125362) (#126152)
Doc: Note that pydoc uses and prefers ``MANPAGER`` (GH-125362)
(cherry picked from commit 0e45b1fd0f
)
Co-authored-by: Matthieu Ancellin <31126826+mancellin@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
35108c1871
commit
f5b1510e6b
2 changed files with 4 additions and 2 deletions
|
@ -199,6 +199,7 @@ nitpick_ignore = [
|
|||
('envvar', 'LC_TIME'),
|
||||
('envvar', 'LINES'),
|
||||
('envvar', 'LOGNAME'),
|
||||
('envvar', 'MANPAGER'),
|
||||
('envvar', 'PAGER'),
|
||||
('envvar', 'PATH'),
|
||||
('envvar', 'PATHEXT'),
|
||||
|
|
|
@ -52,8 +52,9 @@ produced for that file.
|
|||
only execute code when a file is invoked as a script and not just imported.
|
||||
|
||||
When printing output to the console, :program:`pydoc` attempts to paginate the
|
||||
output for easier reading. If the :envvar:`PAGER` environment variable is set,
|
||||
:program:`pydoc` will use its value as a pagination program.
|
||||
output for easier reading. If either the :envvar:`MANPAGER` or the
|
||||
:envvar:`PAGER` environment variable is set, :program:`pydoc` will use its
|
||||
value as a pagination program. When both are set, :envvar:`MANPAGER` is used.
|
||||
|
||||
Specifying a ``-w`` flag before the argument will cause HTML documentation
|
||||
to be written out to a file in the current directory, instead of displaying text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue