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
docs: tutorial/introduction doesn't mention toggle of prompts #78632
Comments
Interactive code examples need the prompt to be stripped, before copy-and-paste. This is explained in https://docs.python.org/3/tutorial/introduction.html But this page does not tell us about the [>>>] prompt-toggle at top of each interactive code example. This caused a user error, reported in https://mail.python.org/pipermail/python-ideas/2018-August/052869.html. The [>>>] toggle isn't in the Python 2.7 docs, so nothing to fix there! |
The toggle option is only in the HTML version with javascript enabled. It would apply to PDF renderings or CHM files etc. |
|
Hi folks! I'm interested in contributing to this issue, but I'm unsure about the context. Can Thanks for your time! |
Hi David! There is a button marked '>>>' in the top right corner of code blocks with Interactive code examples. This toggles between the interaction as it would appear in a terminal and a mode where only the input is listed without the '>>>'. See for example the second block on https://docs.python.org/3/tutorial/introduction.html |
I added a pull request to attempt to fix this issue. It received a label but no review and has gone stale, so I am sending out a ping. |
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: