gh-137760: Update REPL constants documentation#137798
Merged
corona10 merged 3 commits intopython:mainfrom Aug 15, 2025
Merged
Conversation
Update documentation for help, quit, and exit constants to reflect that they can be accessed directly in the interactive interpreter without parentheses, in addition to the traditional function call syntax.
Contributor
Author
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
adorilson
suggested changes
Aug 15, 2025
| @@ -97,15 +97,17 @@ should not be used in programs. | |||
| exit(code=None) | |||
|
|
|||
| Objects that when printed, print a message like "Use quit() or Ctrl-D | |||
Contributor
There was a problem hiding this comment.
This must be changed.
See
○ → python3.13
Python 3.13.0 (main, Oct 8 2024, 08:51:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> quit
○ → Edit: I was wrong. Nothing to do here.
| .. data:: help | ||
| :noindex: | ||
|
|
||
| Object that when printed, prints the message "Type help() for interactive |
Member
There was a problem hiding this comment.
Run print(help) and see what is returned
Contributor
There was a problem hiding this comment.
Run
print(help)and see what is returned
wow, my bad.
I didn't notice the difference between printed and accessed directly. Sorry about that.
corona10
approved these changes
Aug 15, 2025
|
Thanks @Antraxmin for the PR, and @corona10 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Aug 15, 2025
(cherry picked from commit d6719c6) Co-authored-by: Chaemin-Lim <antraxmin@naver.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Aug 15, 2025
(cherry picked from commit d6719c6) Co-authored-by: Chaemin-Lim <antraxmin@naver.com>
|
GH-137822 is a backport of this pull request to the 3.14 branch. |
|
GH-137823 is a backport of this pull request to the 3.13 branch. |
corona10
pushed a commit
that referenced
this pull request
Aug 15, 2025
hugovk
pushed a commit
that referenced
this pull request
Aug 15, 2025
Agent-Hellboy
pushed a commit
to Agent-Hellboy/cpython
that referenced
this pull request
Aug 19, 2025
kumaraditya303
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Sep 9, 2025
…-137798) (python#137822) Co-authored-by: Chaemin-Lim <antraxmin@naver.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update documentation for help, quit, and exit constants to reflect that they can be accessed directly in the interactive interpreter without parentheses, in addition to the traditional function call syntax.
📚 Documentation preview 📚: https://cpython-previews--137798.org.readthedocs.build/