mirror of
https://github.com/python/cpython.git
synced 2025-10-01 21:02:15 +00:00
DOC: fix documentation for copyright and credits (GH-5706)
Adapt documentation for `copyright` and `credits` to reality. Previously, the documentation implied that all each of `copyright`,
`credits`, and `license`, would print a message to call the object in order to see the full text. In reality, only `license` exhibits this
behaviour, and `copyright` and `credit` print their full text either when printed, displayed, or called.
(cherry picked from commit 243d6d7126
)
Co-authored-by: Gerrit Holl <gerrit.holl@gmail.com>
This commit is contained in:
parent
0f76411059
commit
025544a855
1 changed files with 7 additions and 3 deletions
|
@ -86,10 +86,14 @@ should not be used in programs.
|
||||||
specified exit code.
|
specified exit code.
|
||||||
|
|
||||||
.. data:: copyright
|
.. data:: copyright
|
||||||
license
|
|
||||||
credits
|
credits
|
||||||
|
|
||||||
Objects that when printed, print a message like "Type license() to see the
|
Objects that when printed or called, print the text of copyright or
|
||||||
full license text", and when called, display the corresponding text in a
|
credits, respectively.
|
||||||
|
|
||||||
|
.. 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 (one screen at a time).
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue