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: IDLE: "help" is missing from the sign-on message
Type: behavior Stage: resolved
Components: IDLE Versions: Python 3.8, Python 3.7, Python 3.6, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: ammar2, matrixise, miss-islington, steven.daprano, terry.reedy, zach.ware
Priority: normal Keywords: patch

Created on 2018-06-14 07:43 by matrixise, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 7755 merged matrixise, 2018-06-16 19:56
PR 7756 merged miss-islington, 2018-06-16 21:22
PR 7757 merged miss-islington, 2018-06-16 21:24
PR 7758 merged terry.reedy, 2018-06-16 21:37
Messages (11)
msg319504 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2018-06-14 08:26
What do you mean "type help"?

help() is added by the site module, if you've done something to skip running the site module it won't be added.

Can you give an example of what you are trying to do, what happens and what you expected?

Are you running in IDLE or the regular REPL?
msg319776 - (view) Author: Stéphane Wirtel (matrixise) * (Python committer) Date: 2018-06-16 18:58
Hi Steven,

On Thursday, I gave a python training with some Windows computers and I have executer python, just the REPL, normally, you have 

Python 3.6.5 (default, Apr  4 2018, 15:01:18) 
[GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

But I didn't see the message with "help" in the prompt on the Windows computer. I would like to confirm with the standard bundle of python.org but I don't have a windows computer. and I didn't check the author of this bundle, but it was the 3.6.x version.
msg319777 - (view) Author: Ammar Askar (ammar2) * (Python committer) Date: 2018-06-16 19:05
Can't recreate from latest Python 3.6.5 downloaded off python.org

  > D:\Python365\python.exe
  Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32
  Type "help", "copyright", "credits" or "license" for more information.
msg319778 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2018-06-16 19:21
I suspect you either had a non-python.org version of Python, or had the embeddable distribution rather than a proper installation (the embeddable distribution should not be used unless you're embedding, hence the name :)).  Either way, the standard distribution started normally imports site by default, which monkeypatches `help` into builtins on all platforms.
msg319780 - (view) Author: Stéphane Wirtel (matrixise) * (Python committer) Date: 2018-06-16 19:39
Hi Zach, in fact, it's not a problem with Python itself, but with Idle.

I just downloaded a virtualbox image via (https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/) and started the installation of Python 3.6.5

and when you execute IDLE, "help()" is not present, but this sentence is present in the prompt of python3.

I am going to provide a small patch.
msg319782 - (view) Author: Stéphane Wirtel (matrixise) * (Python committer) Date: 2018-06-16 19:57
PR proposed
msg319788 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2018-06-16 21:20
New changeset 9d49f85064c388e2dddb9f8cb4ae1f486bc8d357 by Terry Jan Reedy (Stéphane Wirtel) in branch 'master':
bpo-33856: Add "help" to the welcome message of IDLE (GH-7755)
https://github.com/python/cpython/commit/9d49f85064c388e2dddb9f8cb4ae1f486bc8d357
msg319789 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2018-06-16 21:23
Thanks for the clarification.

>>> help works

but is not in the sign-on message, even though it is by far the most important item mentioned.  I just merged to master.
msg319790 - (view) Author: miss-islington (miss-islington) Date: 2018-06-16 21:37
New changeset 6bb770445192e19aef94111c6a9913e1526c4d64 by Miss Islington (bot) in branch '3.7':
bpo-33856: Add "help" to the welcome message of IDLE (GH-7755)
https://github.com/python/cpython/commit/6bb770445192e19aef94111c6a9913e1526c4d64
msg319791 - (view) Author: miss-islington (miss-islington) Date: 2018-06-16 21:44
New changeset 25531fb7b8338a21cdcdf2ce0f981d781d21641f by Miss Islington (bot) in branch '3.6':
bpo-33856: Add "help" to the welcome message of IDLE (GH-7755)
https://github.com/python/cpython/commit/25531fb7b8338a21cdcdf2ce0f981d781d21641f
msg319792 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2018-06-16 22:15
New changeset c488558faaff4ffa44ba20e0c1f1fc8f18fe722f by Terry Jan Reedy in branch '2.7':
[2.7] bpo-33856: Add "help" to the welcome message of IDLE (GH-7755) (GH-7758)
https://github.com/python/cpython/commit/c488558faaff4ffa44ba20e0c1f1fc8f18fe722f
History
Date User Action Args
2022-04-11 14:59:01adminsetgithub: 78037
2018-06-16 22:15:55terry.reedysetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2018-06-16 22:15:23terry.reedysetmessages: + msg319792
2018-06-16 21:44:04miss-islingtonsetmessages: + msg319791
2018-06-16 21:37:58miss-islingtonsetnosy: + miss-islington
messages: + msg319790
2018-06-16 21:37:31terry.reedysetpull_requests: + pull_request7366
2018-06-16 21:24:07miss-islingtonsetkeywords: + patch
stage: backport needed -> patch review
pull_requests: + pull_request7365
2018-06-16 21:23:25terry.reedysetstatus: closed -> open

type: behavior
assignee: terry.reedy
components: + IDLE
title: Type "help" is not present on win32 -> IDLE: "help" is missing from the sign-on message
messages: + msg319789
versions: + Python 2.7, Python 3.7, Python 3.8
resolution: not a bug -> (no value)
stage: resolved -> backport needed
2018-06-16 21:22:16miss-islingtonsetpull_requests: + pull_request7364
2018-06-16 21:20:59terry.reedysetmessages: + msg319788
2018-06-16 19:57:15matrixisesetmessages: + msg319782
2018-06-16 19:56:40matrixisesetpull_requests: + pull_request7363
2018-06-16 19:39:56matrixisesetmessages: + msg319780
2018-06-16 19:21:12zach.waresetstatus: open -> closed

nosy: + zach.ware
messages: + msg319778

resolution: not a bug
stage: resolved
2018-06-16 19:05:49ammar2setnosy: + ammar2
messages: + msg319777
2018-06-16 18:58:22matrixisesetmessages: + msg319776
2018-06-15 19:45:49terry.reedysetnosy: + terry.reedy
2018-06-14 08:26:13steven.dapranosetnosy: + steven.daprano
messages: + msg319504
2018-06-14 07:43:06matrixisecreate