René's URL Explorer Experiment


Title: gh-65339: Save IDLE Shell and Output windows as text by default by serhiy-storchaka · Pull Request #152742 · python/cpython · GitHub

Open Graph Title: gh-65339: Save IDLE Shell and Output windows as text by default by serhiy-storchaka · Pull Request #152742 · python/cpython

X Title: gh-65339: Save IDLE Shell and Output windows as text by default by serhiy-storchaka · Pull Request #152742 · python/cpython

Description: The Shell and Output windows contain shell logs and Find in Files (grep) output, not Python source, so defaulting their Save As dialog to .py is misleading — beginners have saved a Shell session as .py and then hit a SyntaxError running it (see the issue). IOBinding gains text_filetypes (text files listed first) and text_defaultextension = '.txt'. OutputWindow.__init__ switches its io to these, and the Shell (PyShell(OutputWindow)) inherits it. .py is still selectable, just no longer the default. Terry also considered removing .py as an option entirely for these windows; that stricter change is left out here. The added test checks that an Output window's save defaults to text. 🤖 Generated with Claude Code Issue: gh-65339

Open Graph Description: The Shell and Output windows contain shell logs and Find in Files (grep) output, not Python source, so defaulting their Save As dialog to .py is misleading — beginners have saved a Shell session as...

X Description: The Shell and Output windows contain shell logs and Find in Files (grep) output, not Python source, so defaulting their Save As dialog to .py is misleading — beginners have saved a Shell session as...

Opengraph URL: https://github.com/python/cpython/pull/152742

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:452169dd-00f2-656b-ac7a-995c75dac923
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAF2A:13AD7A:26018A:31BFF6:6A503D8A
html-safe-nonce3ef269629a87664018800287601fe45cc434ea7ba874cebd2a51f901285ce2bc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjJBOjEzQUQ3QToyNjAxOEE6MzFCRkY2OjZBNTAzRDhBIiwidmlzaXRvcl9pZCI6IjY5NDQ2MjE0MjExMzQ4ODgzMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0f0865bd7ae9d762f3163976404c88327729fa61b1f5c302831777bed9e06fa6
hovercard-subject-tagpull_request:3968630774
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/152742/files
twitter:imagehttps://avatars.githubusercontent.com/u/3659035?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3659035?s=400&v=4
og:image:altThe Shell and Output windows contain shell logs and Find in Files (grep) output, not Python source, so defaulting their Save As dialog to .py is misleading — beginners have saved a Shell session as...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released90666eaf032b7eb8975a378efe38e37f4ebb96c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/152742/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F152742%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F152742%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/152742/files
Reloadhttps://github.com/python/cpython/pull/152742/files
Reloadhttps://github.com/python/cpython/pull/152742/files
Please reload this pagehttps://github.com/python/cpython/pull/152742/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/152742/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terryjreedyhttps://github.com/terryjreedy
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:gh-65339-output-save-txthttps://github.com/serhiy-storchaka/cpython/tree/gh-65339-output-save-txt
Conversation 4 https://github.com/python/cpython/pull/152742
Commits 1 https://github.com/python/cpython/pull/152742/commits
Checks 63 https://github.com/python/cpython/pull/152742/checks
Files changed https://github.com/python/cpython/pull/152742/files
Please reload this pagehttps://github.com/python/cpython/pull/152742/files
gh-65339: Save IDLE Shell and Output windows as text by default https://github.com/python/cpython/pull/152742/files#top
Show all changes 1 commit https://github.com/python/cpython/pull/152742/files
3cf7139 gh-65339: Save IDLE Shell and Output windows as text by default serhiy-storchaka Jul 1, 2026 https://github.com/python/cpython/pull/152742/commits/3cf7139638139626d798d24bb873e0ff43096d09
Clear filters https://github.com/python/cpython/pull/152742/files
Please reload this pagehttps://github.com/python/cpython/pull/152742/files
Please reload this pagehttps://github.com/python/cpython/pull/152742/files
test_outwin.py https://github.com/python/cpython/pull/152742/files#diff-0cf1e508290f29349d9e00b5983dea5f7245862238e5ffd748a79750a9324732
iomenu.py https://github.com/python/cpython/pull/152742/files#diff-6b7875a69866c63c62e70dcd9317ca820496453f17bb65b7fa9024e43d8879a9
outwin.py https://github.com/python/cpython/pull/152742/files#diff-1259e79f6bdbfc52f9f956ee39ce5ecd9f085f7d01c3cc47359f02e8fe023183
2026-07-01-17-00-00.gh-issue-65339.oUtTxt.rst https://github.com/python/cpython/pull/152742/files#diff-c9df0b21c8a46023fa0fc04eaa94bda6077c881bb8edd4a000680ab215c27cec
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L505
Lib/idlelib/idle_test/test_outwin.pyhttps://github.com/python/cpython/pull/152742/files#diff-0cf1e508290f29349d9e00b5983dea5f7245862238e5ffd748a79750a9324732
View file https://github.com/serhiy-storchaka/cpython/blob/3cf7139638139626d798d24bb873e0ff43096d09/Lib/idlelib/idle_test/test_outwin.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/152742/{{ revealButtonHref }}
https://github.com/python/cpython/pull/152742/files#diff-0cf1e508290f29349d9e00b5983dea5f7245862238e5ffd748a79750a9324732
https://github.com/python/cpython/pull/152742/files#diff-0cf1e508290f29349d9e00b5983dea5f7245862238e5ffd748a79750a9324732
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L505
Lib/idlelib/iomenu.pyhttps://github.com/python/cpython/pull/152742/files#diff-6b7875a69866c63c62e70dcd9317ca820496453f17bb65b7fa9024e43d8879a9
View file https://github.com/serhiy-storchaka/cpython/blob/3cf7139638139626d798d24bb873e0ff43096d09/Lib/idlelib/iomenu.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/152742/{{ revealButtonHref }}
https://github.com/python/cpython/pull/152742/files#diff-6b7875a69866c63c62e70dcd9317ca820496453f17bb65b7fa9024e43d8879a9
https://github.com/python/cpython/pull/152742/files#diff-6b7875a69866c63c62e70dcd9317ca820496453f17bb65b7fa9024e43d8879a9
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L505
Lib/idlelib/outwin.pyhttps://github.com/python/cpython/pull/152742/files#diff-1259e79f6bdbfc52f9f956ee39ce5ecd9f085f7d01c3cc47359f02e8fe023183
View file https://github.com/serhiy-storchaka/cpython/blob/3cf7139638139626d798d24bb873e0ff43096d09/Lib/idlelib/outwin.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/152742/{{ revealButtonHref }}
https://github.com/python/cpython/pull/152742/files#diff-1259e79f6bdbfc52f9f956ee39ce5ecd9f085f7d01c3cc47359f02e8fe023183
https://github.com/python/cpython/pull/152742/files#diff-1259e79f6bdbfc52f9f956ee39ce5ecd9f085f7d01c3cc47359f02e8fe023183
Misc/NEWS.d/next/IDLE/2026-07-01-17-00-00.gh-issue-65339.oUtTxt.rsthttps://github.com/python/cpython/pull/152742/files#diff-c9df0b21c8a46023fa0fc04eaa94bda6077c881bb8edd4a000680ab215c27cec
View file https://github.com/serhiy-storchaka/cpython/blob/3cf7139638139626d798d24bb873e0ff43096d09/Misc/NEWS.d/next/IDLE/2026-07-01-17-00-00.gh-issue-65339.oUtTxt.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/152742/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/152742/files
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.