Skip to content

Commit 0e31167

Browse files
Commit
1 parent 1c984ba commit 0e31167

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

Doc/library/constants.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ should not be used in programs.
114114
credits
115115

116116
Objects that when printed or called, print the text of copyright or
117-
credits, respectively.
117+
credits, respectively (see :func:`copyright` and :func:`credits`).
118118

119119
.. data:: license
120120

121121
Object that when printed, prints the message "Type license() to see the
122122
full license text", and when called, displays the full license text in a
123-
pager-like fashion (one screen at a time).
123+
pager-like fashion (see :func:`license`).

Doc/library/functions.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,20 @@ are always available. They are listed here in alphabetical order.
456456
deprecated; it should only be passed as a single positional argument.
457457

458458

459+
.. function:: copyright()
460+
461+
Print the full :data:`copyright` text.
462+
463+
This function is added to the built-in namespace by the :mod:`site` module.
464+
465+
466+
.. function:: credits()
467+
468+
Print the full :data:`credits` text.
469+
470+
This function is added to the built-in namespace by the :mod:`site` module.
471+
472+
459473
.. function:: delattr(object, name, /)
460474

461475
This is a relative of :func:`setattr`. The arguments are an object and a
@@ -1141,6 +1155,14 @@ are always available. They are listed here in alphabetical order.
11411155
:data:`sys.maxsize`, such as :class:`range(2 ** 100) <range>`.
11421156

11431157

1158+
.. function:: license()
1159+
1160+
Displays the full license text in a pager-like fashion (one page at a time;
1161+
this function is intended for interactive use).
1162+
1163+
This function is added to the built-in namespace by the :mod:`site` module.
1164+
1165+
11441166
.. _func-list:
11451167
.. class:: list(iterable=(), /)
11461168
:noindex:

0 commit comments

Comments
 (0)