-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
IDLE: Show help(object) output in a text viewer #81949
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
Comments
Currently, IDLE just writes the entire help message into the shell. If auto-squeezing is enabled, then long help messages are automatically squeezed, following which the help text can be viewed in a text viewer or expanded inline. This is still not great UX. I propose to simply have help(object) open a text viewer with the help text. There's actually an old (2007) comment in Lib\idlelib\pyshell.py by KBK that this should be done. See related discussion in issue bpo-35855. |
See PR #59345. |
Raymond, I'm interested in your opinion on this. |
For myself, I only want this for 'large' outputs. I prefer something like the following left alone. >>> help('continue')
The "continue" statement
************************ continue_stmt ::= "continue" "continue" may only occur syntactically nested in a "for" or "while" When "continue" passes control out of a "try" statement with a Related help topics: while, for The threshhold for squeezer should be good enough. I think of this as autosqueeze + autoexpand if this if the first output after '>>>' and the statement began with 'help('. An advantage of doing it this way is that the squeezer button remains after dismissing the viewer. Also, I suspect that most people who disable squeezer would not like this either. |
I should have said, 'who disable autosqueeze'. Anyway, an option to disable help autoview will make me more comfortable adding it. A similar change would be to add 'Squeeze & View' to the context menu. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: