René's URL Explorer Experiment


Title: IDLE: usually include prompts when save or copy shell · Issue #95191 · python/cpython · GitHub

Open Graph Title: IDLE: usually include prompts when save or copy shell · Issue #95191 · python/cpython

X Title: IDLE: usually include prompts when save or copy shell · Issue #95191 · python/cpython

Description: Up through 3.9, saving the shell saved saved the contents of the underlying text widget, which saved user input with the primary prompt and weird indents. In 3.10, the primary prompt was moved to a sidebar and secondary prompts added, al...

Open Graph Description: Up through 3.9, saving the shell saved saved the contents of the underlying text widget, which saved user input with the primary prompt and weird indents. In 3.10, the primary prompt was moved to a...

X Description: Up through 3.9, saving the shell saved saved the contents of the underlying text widget, which saved user input with the primary prompt and weird indents. In 3.10, the primary prompt was moved to a...

Opengraph URL: https://github.com/python/cpython/issues/95191

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IDLE: usually include prompts when save or copy shell ","articleBody":"Up through 3.9, saving the shell saved saved the contents of the underlying text widget, which saved user input with the primary prompt and weird indents.  In 3.10, the primary prompt was moved to a sidebar and secondary prompts added, allowing proper indents in the text widget.  However, we left File => Save  as saving the text widget text, which meant saving without the prompts. Keeping the same implementation changed the result.  Prompted by a complaint by Raymond Hettinger, I regard this as a regression whose fix, by including prompts as the default mode of saving, is a high priority.\r\n\r\nSaving both input and output without prompts had no precedent and does not seem useful, so I don't plan to keep it as an option.  A useful option, already intended, is to save only code and that without prompts, so the saved code can be loaded into an editor.  A possible variation would be to include output as comment blocks.  Either way, this is a separate issue.\r\n\r\nSelecting and copying is a bit trickier.  In 3.9, one could select a single statement (and maybe its output) with or without the leading '>>>'.  Selecting multiple statements necessarily included any output, uncommented, and prompts after the first.  In 3.10, one can select text in the text area, as normal, or select lines in the sidebar with click and drag.  Right click offers 2 copy options: 'copy' copies the selection as is; 'copy with prompts' extends any incomplete lines and adds prompts to input lines.  Extending the lines makes the selection the same as if it had been done by a sidebar click and drag.  (Adding a 'copy code' option, as discussed above, would be part of a separate issue.)  I intend to keep both options, but change 'copy' to 'copy as is' or 'copy selection' and put it second.\r\n\r\nCurrently Edit=>Copy (or its hotkey, such as ^-C) copies as is.  For people who select more than just one statement, this is a regression and adding prompts would be much better. When one selects at most one statement, adding a prompt might be surprising and unwanted. \r\n\r\n We could split the Edit Copy option into 'Copy with prompts' and 'Copy as is'.  (But see below.)   If we do, which should get ^-C or current equivalent as hotkey.  Adding another hotkey for the other is possible, but somewhat of a pain.  Removing it later would be even more painful. (Again, see below.)\r\n\r\n@rhettinger  If we do not split Edit Copy, which copy option should it do?  If we do split it, what should the current copy hotkey do?\r\n\r\nI will soon open an issue that could remove the prompt sidebar from the history area and instead insert them into the text widget when a statement is execution.  The history area would then look like the executed statement area of the REPL (at least as in Windows Command Prompt).  Splitting Edit Copy as proposed above would then be a mistake.  I will start with fixing saves.\r\n","author":{"url":"https://github.com/terryjreedy","@type":"Person","name":"terryjreedy"},"datePublished":"2022-07-24T06:25:51Z","url":"https://github.com/python/cpython/issues/95191"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8f60d691-4d94-e2d7-6511-2ddf26fb1446
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8F7C:269AD9:352241E:46EBB82:6B02031E
html-safe-noncea89b5f7b6636f1938684ed8adcf57ea9965188b76468c6fdca1b6e13fd82b5c0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjdDOjI2OUFEOTozNTIyNDFFOjQ2RUJCODI6NkIwMjAzMUUiLCJ2aXNpdG9yX2lkIjoiMjM1MjM4NzQ3NzEwNjQ1OTQyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb0181727e8a6fd2b0cd16966ecf2a66cf554b36b62ee9056273a7ba57b9ff090
hovercard-subject-tagissue:1315822203
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/95191/issue_layout
twitter:imagehttps://opengraph.githubassets.com/97c8779ed816d5c3b3aa5f70e27ab33abbbe726c7c12966f221e5a5bffaf8c12/python/cpython/issues/95191
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/97c8779ed816d5c3b3aa5f70e27ab33abbbe726c7c12966f221e5a5bffaf8c12/python/cpython/issues/95191
og:image:altUp through 3.9, saving the shell saved saved the contents of the underlying text widget, which saved user input with the primary prompt and weird indents. In 3.10, the primary prompt was moved to a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameterryjreedy
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/95191#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F95191
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F95191
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/95191
Reloadhttps://github.com/python/cpython/issues/95191
Reloadhttps://github.com/python/cpython/issues/95191
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/95191
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/95191
IDLE: usually include prompts when save or copy shell https://github.com/python/cpython/issues/95191#top
#95557https://github.com/python/cpython/pull/95557
3.10 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.10%20(EOL)%22
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
topic-IDLEhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-IDLE%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/terryjreedy
terryjreedyhttps://github.com/terryjreedy
on Jul 24, 2022https://github.com/python/cpython/issues/95191#issue-1315822203
@rhettingerhttps://github.com/rhettinger
terryjreedyhttps://github.com/terryjreedy
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
topic-IDLEhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-IDLE%22
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
on Jul 24, 2022https://github.com/python/cpython/issues/95191#event-7051017014
terryjreedyhttps://github.com/terryjreedy
IDLE Issueshttps://github.com/orgs/python/projects/31
on Jul 24, 2022https://github.com/python/cpython/issues/95191#event-15225450098
https://github.com/terryjreedy
terryjreedyhttps://github.com/terryjreedy
on Jul 31, 2022https://github.com/python/cpython/issues/95191#issuecomment-1200359329
terryjreedyhttps://github.com/terryjreedy
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
3.10 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.10%20(EOL)%22
on Aug 2, 2022https://github.com/python/cpython/issues/95191#event-7106377860
terryjreedyhttps://github.com/terryjreedy
on Aug 2, 2022https://github.com/python/cpython/issues/95191#event-7106455714
gh-95191: IDLE: Include prompts when saving Shell #95554https://github.com/python/cpython/commit/b85411fc5e9e223a6bd44f89f674ee3b2e29b99e
gh-95191https://github.com/python/cpython/issues/95191
#95554https://github.com/python/cpython/pull/95554
b85411fhttps://github.com/python/cpython/commit/b85411fc5e9e223a6bd44f89f674ee3b2e29b99e
miss-islingtonhttps://github.com/miss-islington
on Aug 2, 2022https://github.com/python/cpython/issues/95191#event-7106456468
pythongh-95191: IDLE: Include prompts when saving Shell pythonGH-95554https://github.com/miss-islington/cpython/commit/4f0e829e3414c6e0d2be2c9e568dfafa64b745ec
pythongh-95191https://github.com/python/cpython/issues/95191
pythonGH-95554https://github.com/python/cpython/pull/95554
4f0e829https://github.com/miss-islington/cpython/commit/4f0e829e3414c6e0d2be2c9e568dfafa64b745ec
pythongh-95191: IDLE: Include prompts when saving Shell pythonGH-95554https://github.com/miss-islington/cpython/commit/9348386f736c08c9ebf086a408d3f3bbe62c91ac
pythongh-95191https://github.com/python/cpython/issues/95191
pythonGH-95554https://github.com/python/cpython/pull/95554
9348386https://github.com/miss-islington/cpython/commit/9348386f736c08c9ebf086a408d3f3bbe62c91ac
terryjreedyhttps://github.com/terryjreedy
on Aug 2, 2022https://github.com/python/cpython/issues/95191#event-7106928361
gh-95191: IDLE: Include prompts when saving Shell GH-95554 (#95557)https://github.com/python/cpython/commit/8570f6d1a09a71e11f860fdb6f338f48995b5b36
gh-95191https://github.com/python/cpython/issues/95191
GH-95554https://github.com/python/cpython/pull/95554
#95557https://github.com/python/cpython/pull/95557
8570f6dhttps://github.com/python/cpython/commit/8570f6d1a09a71e11f860fdb6f338f48995b5b36
erlend-aaslandhttps://github.com/erlend-aasland
[3.10] gh-95191: IDLE: Include prompts when saving Shell GH-95554 #95558https://github.com/python/cpython/pull/95558
on Aug 2, 2022https://github.com/python/cpython/issues/95191#event-7107798976
erlend-aaslandhttps://github.com/erlend-aasland
gh-95191: IDLE: Include prompts when saving Shell #95554https://github.com/python/cpython/pull/95554
on Aug 2, 2022https://github.com/python/cpython/issues/95191#event-7107805302
erlend-aaslandhttps://github.com/erlend-aasland
[3.11] gh-95191: IDLE: Include prompts when saving Shell GH-95554 #95557https://github.com/python/cpython/pull/95557
on Aug 2, 2022https://github.com/python/cpython/issues/95191#event-7107806580
erlend-aaslandhttps://github.com/erlend-aasland
on Aug 2, 2022https://github.com/python/cpython/issues/95191#event-7109011241
gh-95191: IDLE: Include prompts when saving Shell GH-95554 (#95558)https://github.com/python/cpython/commit/654d62adc64d0c793b1ff93ddfdc6a6986ec4a1b
gh-95191https://github.com/python/cpython/issues/95191
GH-95554https://github.com/python/cpython/pull/95554
#95558https://github.com/python/cpython/pull/95558
654d62ahttps://github.com/python/cpython/commit/654d62adc64d0c793b1ff93ddfdc6a6986ec4a1b
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
on Aug 2, 2022https://github.com/python/cpython/issues/95191#issuecomment-1202351008
gh-95191: IDLE: Include prompts when saving Shell #95554https://github.com/python/cpython/pull/95554
[3.10] gh-95191: IDLE: Include prompts when saving Shell GH-95554 #95558https://github.com/python/cpython/pull/95558
[3.11] gh-95191: IDLE: Include prompts when saving Shell GH-95554 #95557https://github.com/python/cpython/pull/95557
erlend-aaslandhttps://github.com/erlend-aasland
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 2, 2022https://github.com/python/cpython/issues/95191#event-7109019189
erlend-aaslandhttps://github.com/erlend-aasland
IDLE Issueshttps://github.com/orgs/python/projects/31
on Aug 2, 2022https://github.com/python/cpython/issues/95191
terryjreedyhttps://github.com/terryjreedy
on Aug 4, 2022https://github.com/python/cpython/issues/95191#event-7123717596
pythongh-95191: IDLE Prompts entry for Whatnew 3.11https://github.com/terryjreedy/cpython/commit/d22bd9fa63ab1a686f5c02a3c890b69f01e28bcb
pythongh-95191https://github.com/python/cpython/issues/95191
d22bd9fhttps://github.com/terryjreedy/cpython/commit/d22bd9fa63ab1a686f5c02a3c890b69f01e28bcb
pythongh-95191: IDLE Prompts entry for What's New 3.10https://github.com/terryjreedy/cpython/commit/552138175c5056a451ffb73ef78dc31ebcc63674
pythongh-95191https://github.com/python/cpython/issues/95191
5521381https://github.com/terryjreedy/cpython/commit/552138175c5056a451ffb73ef78dc31ebcc63674
gh-95191: IDLE Prompts entry for Whatnew 3.11 (#95632)https://github.com/python/cpython/commit/c569526faccb328a55691664b5931171d1a1494a
gh-95191https://github.com/python/cpython/issues/95191
#95632https://github.com/python/cpython/pull/95632
c569526https://github.com/python/cpython/commit/c569526faccb328a55691664b5931171d1a1494a
miss-islingtonhttps://github.com/miss-islington
on Aug 4, 2022https://github.com/python/cpython/issues/95191#event-7123750172
pythongh-95191: IDLE Prompts entry for Whatnew 3.11 (pythonGH-95632)https://github.com/miss-islington/cpython/commit/e437c540f16cb2b3b70ca7e8e135d42ab228e5b9
pythongh-95191https://github.com/python/cpython/issues/95191
pythonGH-95632https://github.com/python/cpython/pull/95632
e437c54https://github.com/miss-islington/cpython/commit/e437c540f16cb2b3b70ca7e8e135d42ab228e5b9
gh-95191: IDLE Prompts entry for Whatnew 3.11 (GH-95632)https://github.com/python/cpython/commit/dc5fecbf83adb701e79e8287feac08ced6574644
gh-95191https://github.com/python/cpython/issues/95191
GH-95632https://github.com/python/cpython/pull/95632
dc5fecbhttps://github.com/python/cpython/commit/dc5fecbf83adb701e79e8287feac08ced6574644
terryjreedyhttps://github.com/terryjreedy
on Aug 4, 2022https://github.com/python/cpython/issues/95191#event-7123998119
gh-95191: IDLE Prompts entry for What's New 3.10 (#95633)https://github.com/python/cpython/commit/bcc74d509a3bd7e4fdc658179ae6d77614d1fd36
gh-95191https://github.com/python/cpython/issues/95191
#95633https://github.com/python/cpython/pull/95633
bcc74d5https://github.com/python/cpython/commit/bcc74d509a3bd7e4fdc658179ae6d77614d1fd36
miss-islingtonhttps://github.com/miss-islington
on Aug 4, 2022https://github.com/python/cpython/issues/95191#event-7123998124
pythongh-95191: IDLE Prompts entry for What's New 3.10 (pythonGH-95633)https://github.com/miss-islington/cpython/commit/da21b1a04b184b6a3621f2d95d2d94f492537c0e
pythongh-95191https://github.com/python/cpython/issues/95191
pythonGH-95633https://github.com/python/cpython/pull/95633
da21b1ahttps://github.com/miss-islington/cpython/commit/da21b1a04b184b6a3621f2d95d2d94f492537c0e
pythongh-95191: IDLE Prompts entry for What's New 3.10 (pythonGH-95633)https://github.com/miss-islington/cpython/commit/fd76e977147ca185d18caba8b6048dad93f5abab
pythongh-95191https://github.com/python/cpython/issues/95191
pythonGH-95633https://github.com/python/cpython/pull/95633
fd76e97https://github.com/miss-islington/cpython/commit/fd76e977147ca185d18caba8b6048dad93f5abab
gh-95191: IDLE Prompts entry for What's New 3.10 (GH-95633)https://github.com/python/cpython/commit/b56a80ec6256f0362a42f4f9b363992278239cf5
gh-95191https://github.com/python/cpython/issues/95191
GH-95633https://github.com/python/cpython/pull/95633
b56a80ehttps://github.com/python/cpython/commit/b56a80ec6256f0362a42f4f9b363992278239cf5
gh-95191: IDLE Prompts entry for What's New 3.10 (GH-95633)https://github.com/python/cpython/commit/b6503fa7956d6c009a568477799963195792efdf
gh-95191https://github.com/python/cpython/issues/95191
GH-95633https://github.com/python/cpython/pull/95633
b6503fahttps://github.com/python/cpython/commit/b6503fa7956d6c009a568477799963195792efdf
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/95191
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/95191
3.10 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.10%20(EOL)%22
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
topic-IDLEhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-IDLE%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
IDLE Issueshttps://github.com/orgs/python/projects/31
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.