This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [doc] Outdated description of `license` object
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.10
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: docs@python Nosy List: CCXXXI, docs@python, terry.reedy
Priority: normal Keywords:

Created on 2021-12-24 09:53 by CCXXXI, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg409138 - (view) Author: (CCXXXI) * Date: 2021-12-24 09:53
https://docs.python.org/3/library/constants.html#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).

It displays "See https://www.python.org/psf/license/" when either printed or called in Python 3.10.1.
msg409164 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-12-25 01:56
On Windows, with the python.orgs 3.9.9, 3.10.1, and 3.11.0b3 installers, 'licence' displays the documented text. Ditto for all 3 build from repository.  Ditto for 3.10.1 on Mac.  The behavior is set, I believe, in site.py, so your system ignored the doc.  What are you running on?
msg409168 - (view) Author: (CCXXXI) * Date: 2021-12-25 09:31
3.10.1 packaged by conda-forge on Windows. Maybe the behavior is changed by conda-forge.

```
from sys import version

print(version)
print(license)
license()
```

```
3.10.1 | packaged by conda-forge | (main, Dec 22 2021, 01:34:40) [MSC v.1929 64 bit (AMD64)]
See https://www.python.org/psf/license/
See https://www.python.org/psf/license/
```
History
Date User Action Args
2022-04-11 14:59:53adminsetgithub: 90330
2021-12-26 13:13:35CCXXXIsetstatus: open -> closed
resolution: not a bug
stage: resolved
2021-12-25 09:31:59CCXXXIsetmessages: + msg409168
2021-12-25 01:56:38terry.reedysetnosy: + terry.reedy
messages: + msg409164
2021-12-24 09:57:32AlexWaygoodsettype: behavior
2021-12-24 09:53:47CCXXXIcreate