Closed Flyagin closed 3 months ago
PR is welcome! 👍
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.
Thank you for replies!
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