Visitar URL original
Doc: Add the omitted secondary prompt by vinzid · Pull Request #30317 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20220724082809/https://github.com/python/cpython/pull/30317
Skip to content
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

Doc: Add the omitted secondary prompt #30317

Merged
merged 1 commit into from Jul 23, 2022
Merged

Doc: Add the omitted secondary prompt #30317

merged 1 commit into from Jul 23, 2022

Conversation

vinzid
Copy link
Contributor

@vinzid vinzid commented Jan 1, 2022

For the continuation lines, ... should present as secondary prompt, or else the display will be abnormal, especially after the >>> in the upper-right corner is toggled, the line will disappear which make the code to copy incomplete.

For the continuation lines, "..." should present as secondary prompt
@bedevere-bot bedevere-bot added the docs label Jan 1, 2022
hugovk
hugovk approved these changes Jan 12, 2022
@hugovk
Copy link
Member

@hugovk hugovk commented Jan 12, 2022

Looks good, this is how the previous example does it, and will make it properly copy/pastable.

Currently:

image

And clicking the toggle:

image

https://docs.python.org/3/tutorial/inputoutput.html#the-string-format-method

@github-actions
Copy link

@github-actions github-actions bot commented Feb 16, 2022

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Feb 16, 2022
@kumaraditya303 kumaraditya303 removed the stale label Jul 23, 2022
@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 23, 2022

Thanks @vinzid for the PR, and @Fidget-Spinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 23, 2022

Sorry @vinzid and @Fidget-Spinner, I had trouble checking out the 3.11 backport branch.
Please backport using cherry_picker on command line.
cherry_picker de28ee8f755760fda13b481a34b1f326984d293a 3.11

miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jul 23, 2022
…0317)

For the continuation lines, "..." should present as secondary prompt
(cherry picked from commit de28ee8f755760fda13b481a34b1f326984d293a)

Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Jul 23, 2022

GH-95159 is a backport of this pull request to the 3.10 branch.

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 23, 2022

Thanks @vinzid for the PR, and @Fidget-Spinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Jul 23, 2022

GH-95160 is a backport of this pull request to the 3.11 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jul 23, 2022
…0317)

For the continuation lines, "..." should present as secondary prompt
(cherry picked from commit de28ee8)

Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
miss-islington added a commit that referenced this issue Jul 23, 2022
For the continuation lines, "..." should present as secondary prompt
(cherry picked from commit de28ee8)

Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
Fidget-Spinner pushed a commit that referenced this issue Jul 23, 2022
…95159)

For the continuation lines, "..." should present as secondary prompt
(cherry picked from commit de28ee8)

Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>

Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants