Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/library/constants.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ should not be used in programs.
credits

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

.. data:: license

Object that when printed, prints the message "Type license() to see the
full license text", and when called, displays the full license text in a
pager-like fashion (one screen at a time).
pager-like fashion (see :func:`license`).
22 changes: 22 additions & 0 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,20 @@ are always available. They are listed here in alphabetical order.
deprecated; it should only be passed as a single positional argument.


.. function:: copyright()

Print the full :data:`copyright` text.

This function is added to the built-in namespace by the :mod:`site` module.


.. function:: credits()

Print the full :data:`credits` text.

This function is added to the built-in namespace by the :mod:`site` module.


.. function:: delattr(object, name, /)

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


.. function:: license()

Displays the full license text in a pager-like fashion (one page at a time;
this function is intended for interactive use).

This function is added to the built-in namespace by the :mod:`site` module.


.. _func-list:
.. class:: list(iterable=(), /)
:noindex:
Expand Down
Loading