-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Incorrect prompt strings in The Python Tutorial #122944
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
PR is welcome! 👍 |
terryjreedy
pushed a commit
that referenced
this issue
Aug 12, 2024
In the REPL, top level comments are followed by a primary, not secondary prompt. Fix the places in the in the tutorial that use the latter.
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Aug 12, 2024
…ythonGH-122949) In the REPL, top level comments are followed by a primary, not secondary prompt. Fix the places in the in the tutorial that use the latter. (cherry picked from commit be90648) Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Aug 12, 2024
…ythonGH-122949) In the REPL, top level comments are followed by a primary, not secondary prompt. Fix the places in the in the tutorial that use the latter. (cherry picked from commit be90648) Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
This was referenced Aug 12, 2024
Thanks for the report and PR. I have no idea if the REPL ever continued with ... after top level comments, but it definitely does not do so now (3.12+), and docs for 3.x should match 3.x. |
terryjreedy
pushed a commit
that referenced
this issue
Aug 12, 2024
…GH-122949) (#122955) gh-122944: Fix incorrect prompt strings in the Python Tutorial (GH-122949) In the REPL, top level comments are followed by a primary, not secondary prompt. Fix the places in the in the tutorial that use the latter. (cherry picked from commit be90648) Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
terryjreedy
pushed a commit
that referenced
this issue
Aug 12, 2024
…GH-122949) (#122954) gh-122944: Fix incorrect prompt strings in the Python Tutorial (GH-122949) In the REPL, top level comments are followed by a primary, not secondary prompt. Fix the places in the in the tutorial that use the latter. (cherry picked from commit be90648) Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Thank you for replies! |
blhsing
pushed a commit
to blhsing/cpython
that referenced
this issue
Aug 22, 2024
…ython#122949) In the REPL, top level comments are followed by a primary, not secondary prompt. Fix the places in the in the tutorial that use the latter.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
When one enters a string consisting exclusively of a comment [like "# this is a comment" (without quotes)], the next prompt string should be ">>>", and it actually is so in 14 places in 4 files in The Python Tutorial listed below. Yet in 9 other places in 4 files in The Python Tutorial, the next prompt string is "...". I think that it should be corrected. Of course, the "..." prompt string is suitable sometimes, but where? In compound statements, such as while, whereas comments do not belong to this category.
Wrong prompt strings ("...", after strings consisting exclusively of a comment)
introduction.rst
line 503
controlflow.rst
line 63
line 447
datastructures.rst
line 385
line 389
line 394
line 467
inputoutput.rst
line 89
line 94
Correct prompt strings (">>>", after strings consisting exclusively of a comment)
introduction.rst
line 219
line 461
line 465
line 469
datastructures.rst
line 252
line 255
line 258
line 261
line 265
line 268
line 274
inputoutput.rst
line 354
stdlib.rst
line 218
line 226
Linked PRs
The text was updated successfully, but these errors were encountered: