Skip to content

Change IDLE 'more information' splash line #86206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
terryjreedy opened this issue Oct 15, 2020 · 6 comments
Closed

Change IDLE 'more information' splash line #86206

terryjreedy opened this issue Oct 15, 2020 · 6 comments
Assignees
Labels
topic-IDLE type-feature A feature request or enhancement

Comments

@terryjreedy
Copy link
Member

terryjreedy commented Oct 15, 2020

BPO 42040
Nosy @terryjreedy, @taleinat

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/terryjreedy'
closed_at = None
created_at = <Date 2020-10-15.05:08:27.986>
labels = ['expert-IDLE', 'type-feature', '3.8', '3.9', '3.10']
title = "Change IDLE 'more information' splash line, change doc name"
updated_at = <Date 2020-10-15.05:08:27.986>
user = 'https://github.com/terryjreedy'

bugs.python.org fields:

activity = <Date 2020-10-15.05:08:27.986>
actor = 'terry.reedy'
assignee = 'terry.reedy'
closed = False
closed_date = None
closer = None
components = ['IDLE']
creation = <Date 2020-10-15.05:08:27.986>
creator = 'terry.reedy'
dependencies = []
files = []
hgrepos = []
issue_num = 42040
keywords = []
message_count = 1.0
messages = ['378663']
nosy_count = 2.0
nosy_names = ['terry.reedy', 'taleinat']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue42040'
versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

Linked PRs

@terryjreedy
Copy link
Member Author

IDLE currently follows the version and system info line with
Type "help", "copyright", "credits" or "license()" for more information. The last 3 are nearly useless, and duplicate the availability of the documents in a better format from About IDLE, where such things are usually found. In any case, beginners are not likely to care, and most people will look at most once.

Entering 'help' prints the instruction to enter 'help()' for interaction or 'help(object)' for info on object.

Proposed replacement:
Type "help" (no quotes) or click Help above for more information.

On macOS, one must click IDLE for About IDLE, but macOS users should know and expect it there (which is why it is moved there on macOS).

Also, the menu entry "IDLE Help" should be "IDLE Doc". I believe the current entry dates to when "IDLE Help" was a separate text from the IDLE doc rather than a copy thereof.

PR later.

@terryjreedy terryjreedy added 3.8 (EOL) end of life 3.9 only security fixes 3.10 only security fixes labels Oct 15, 2020
@terryjreedy terryjreedy self-assigned this Oct 15, 2020
@terryjreedy terryjreedy added topic-IDLE type-feature A feature request or enhancement 3.8 (EOL) end of life 3.9 only security fixes 3.10 only security fixes labels Oct 15, 2020
@terryjreedy terryjreedy self-assigned this Oct 15, 2020
@terryjreedy terryjreedy added topic-IDLE type-feature A feature request or enhancement labels Oct 15, 2020
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@terryjreedy terryjreedy removed 3.10 only security fixes 3.9 only security fixes 3.8 (EOL) end of life labels Jul 23, 2022
@StanFromIreland
Copy link
Contributor

Are you still planning a PR? This would require some form of injection to override the default prompt as I doubt that can be changed as people are nostalgic.

@terryjreedy
Copy link
Member Author

I changed 'IDLE Help' to 'IDLE Doc' as part of #84910.

IDLE defines the "more information" line in pyshell.py, 1136-7 and prints it on lines 1155-6, so we can change it easily.

    COPYRIGHT = \
          'Type "help", "copyright", "credits" or "license()" for more information.'
...
        self.write("Python %s on %s\n%s\n%s" %
                   (sys.version, sys.platform, self.COPYRIGHT, nosub))

I am now thinking about

Enter 'help' below or click 'Help' above for more information.

What do you think?

@StanFromIreland
Copy link
Contributor

StanFromIreland commented Feb 4, 2025

Enter 'help' below or click 'Help' above for more information.

I think its great! I can open a PR if you want.

I would also be for suppressing sys.platform and the build date as version is plenty I think for IDLE.

Also do you still check the email listed on your account, I sent you a few questions :-)

@terryjreedy
Copy link
Member Author

IDLE Shell is intended to mostly imitate the pre-3.13 REPL except as intentionally different. Users paste, or are requested to paste, the initial line, and almost everything there is potentially useful. Yes, please do a PR for agreed upon second line replacement.

@StanFromIreland
Copy link
Contributor

PR opened :)

terryjreedy added a commit that referenced this issue Feb 6, 2025
Change splash line

Co-authored-by: Terry Jan Reedy <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Feb 6, 2025
Change splash line

(cherry picked from commit d83a8a2)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Terry Jan Reedy <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Feb 6, 2025
Change splash line

(cherry picked from commit d83a8a2)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Terry Jan Reedy <[email protected]>
@terryjreedy terryjreedy changed the title Change IDLE 'more information' splash line, change doc name Change IDLE 'more information' splash line Feb 6, 2025
terryjreedy added a commit that referenced this issue Feb 6, 2025
Replace references to boilerplate files available in About IDLE and instead suggest clicking Help menu.

(cherry picked from commit d83a8a2)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Terry Jan Reedy <[email protected]>
terryjreedy added a commit that referenced this issue Feb 6, 2025
Replace references to boilerplate files available in About IDLE and instead suggest clicking Help menu.

(cherry picked from commit d83a8a2)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Terry Jan Reedy <[email protected]>
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this issue Feb 7, 2025
Change splash line

Co-authored-by: Terry Jan Reedy <[email protected]>
cmaloney pushed a commit to cmaloney/cpython that referenced this issue Feb 8, 2025
Change splash line

Co-authored-by: Terry Jan Reedy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-IDLE type-feature A feature request or enhancement
Projects
Status: Done
Development

No branches or pull requests

2 participants