René's URL Explorer Experiment


Title: Cache stdout and stderr consoles to avoid creating new instances each time we print. by kmvanbrunt · Pull Request #1615 · python-cmd2/cmd2 · GitHub

Open Graph Title: Cache stdout and stderr consoles to avoid creating new instances each time we print. by kmvanbrunt · Pull Request #1615 · python-cmd2/cmd2

X Title: Cache stdout and stderr consoles to avoid creating new instances each time we print. by kmvanbrunt · Pull Request #1615 · python-cmd2/cmd2

Description: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python - Cache stdout and stderr consoles to avoid creating new instances each time we print. by kmvanbrunt · Pull Request #1615 · python-cmd2/cmd2

Opengraph URL: https://github.com/python-cmd2/cmd2/pull/1615

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:6584a5db-e50d-99c7-55e1-122f7a97238a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAFA4:38D8C:C7E607:1130993:6A4DE6F7
html-safe-nonce6e2dbd0f95ae0ba455b099a84cf5dd8c73ad83b86a513b56c74360390e3806a9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkE0OjM4RDhDOkM3RTYwNzoxMTMwOTkzOjZBNERFNkY3IiwidmlzaXRvcl9pZCI6IjM0OTU5OTU4OTQ4NzU5NDA1OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf22ab80112e8c53403e9add363ddb9eb70bccd4149a065cf3aac4de0c80b9f27
hovercard-subject-tagpull_request:3436562011
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python-cmd2/cmd2/1615/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/27959883ecfeac7ebd0e93e454ed221c194b251efb8114f39d656874b8d2f59d/python-cmd2/cmd2/pull/1615
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/27959883ecfeac7ebd0e93e454ed221c194b251efb8114f39d656874b8d2f59d/python-cmd2/cmd2/pull/1615
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekmvanbrunt
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-cache
go-importgithub.com/python-cmd2/cmd2 git https://github.com/python-cmd2/cmd2.git
octolytics-dimension-user_id17161025
octolytics-dimension-user_loginpython-cmd2
octolytics-dimension-repository_id51442999
octolytics-dimension-repository_nwopython-cmd2/cmd2
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id51442999
octolytics-dimension-repository_network_root_nwopython-cmd2/cmd2
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
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-cmd2/cmd2/pull/1615#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-cmd2%2Fcmd2%2Fpull%2F1615
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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-cmd2%2Fcmd2%2Fpull%2F1615
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python-cmd2%2Fcmd2
Reloadhttps://github.com/python-cmd2/cmd2/pull/1615
Reloadhttps://github.com/python-cmd2/cmd2/pull/1615
Reloadhttps://github.com/python-cmd2/cmd2/pull/1615
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1615
python-cmd2 https://github.com/python-cmd2
cmd2https://github.com/python-cmd2/cmd2
Notifications https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2
Fork 132 https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2
Star 689 https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2
Code https://github.com/python-cmd2/cmd2
Issues 0 https://github.com/python-cmd2/cmd2/issues
Pull requests 0 https://github.com/python-cmd2/cmd2/pulls
Discussions https://github.com/python-cmd2/cmd2/discussions
Actions https://github.com/python-cmd2/cmd2/actions
Projects https://github.com/python-cmd2/cmd2/projects
Security and quality 0 https://github.com/python-cmd2/cmd2/security
Insights https://github.com/python-cmd2/cmd2/pulse
Code https://github.com/python-cmd2/cmd2
Issues https://github.com/python-cmd2/cmd2/issues
Pull requests https://github.com/python-cmd2/cmd2/pulls
Discussions https://github.com/python-cmd2/cmd2/discussions
Actions https://github.com/python-cmd2/cmd2/actions
Projects https://github.com/python-cmd2/cmd2/projects
Security and quality https://github.com/python-cmd2/cmd2/security
Insights https://github.com/python-cmd2/cmd2/pulse
kmvanbrunthttps://github.com/kmvanbrunt
mainhttps://github.com/python-cmd2/cmd2/tree/main
optimize_consolehttps://github.com/python-cmd2/cmd2/tree/optimize_console
Conversationhttps://github.com/python-cmd2/cmd2/pull/1615
Commits5 (5)https://github.com/python-cmd2/cmd2/pull/1615/commits
Checkshttps://github.com/python-cmd2/cmd2/pull/1615/checks
Files changedhttps://github.com/python-cmd2/cmd2/pull/1615/files
Cache stdout and stderr consoles to avoid creating new instances each time we print.https://github.com/python-cmd2/cmd2/pull/1615#top
kmvanbrunthttps://github.com/kmvanbrunt
mainhttps://github.com/python-cmd2/cmd2/tree/main
optimize_consolehttps://github.com/python-cmd2/cmd2/tree/optimize_console
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
Mar 23, 2026https://github.com/python-cmd2/cmd2/pull/1615#issue-4124218693
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1615
kmvanbrunthttps://github.com/kmvanbrunt
March 23, 2026 16:38https://github.com/python-cmd2/cmd2/pull/1615#commits-pushed-f9a0acc
https://github.com/kmvanbrunt
Cache stdout and stderr consoles to avoid creating new instances each…https://github.com/python-cmd2/cmd2/pull/1615/commits/f9a0acc8ae3a624a7ae511082fdbfdb4e9035bff
f9a0acchttps://github.com/python-cmd2/cmd2/pull/1615/commits/f9a0acc8ae3a624a7ae511082fdbfdb4e9035bff
https://github.com/kmvanbrunt
Added tests for Cmd._create_base_printing_console().https://github.com/python-cmd2/cmd2/pull/1615/commits/a4c853683f2ba5bd3b9fec9d56fda343b0e4befa
a4c8536https://github.com/python-cmd2/cmd2/pull/1615/commits/a4c853683f2ba5bd3b9fec9d56fda343b0e4befa
https://github.com/kmvanbrunt
Fixed type hint.https://github.com/python-cmd2/cmd2/pull/1615/commits/d6788568a1fcabe4665ecac885e1411bd7c3d431
d678856https://github.com/python-cmd2/cmd2/pull/1615/commits/d6788568a1fcabe4665ecac885e1411bd7c3d431
https://github.com/kmvanbrunt
Changed some function signatures.https://github.com/python-cmd2/cmd2/pull/1615/commits/1c8d8f316e5c7014e4ffa6e7db579b92a2a2d0a9
1c8d8f3https://github.com/python-cmd2/cmd2/pull/1615/commits/1c8d8f316e5c7014e4ffa6e7db579b92a2a2d0a9
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
anselorhttps://github.com/anselor
tleonhardthttps://github.com/tleonhardt
code ownershttps://github.com/python-cmd2/cmd2/blob/7fbee93dcfa5c5f2c1b5d73a3469b8d970d38c05/.github/CODEOWNERS#L37
March 23, 2026 23:11https://github.com/python-cmd2/cmd2/pull/1615#event-23832205934
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Mar 23, 2026https://github.com/python-cmd2/cmd2/pull/1615#issuecomment-4114304424
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1615
Codecovhttps://app.codecov.io/gh/python-cmd2/cmd2/pull/1615?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
7fbee93https://app.codecov.io/gh/python-cmd2/cmd2/commit/7fbee93dcfa5c5f2c1b5d73a3469b8d970d38c05?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
4b9facahttps://app.codecov.io/gh/python-cmd2/cmd2/commit/4b9faca52d3dd3fe7aa8d20c1eeb137bb578e468?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
Flaghttps://app.codecov.io/gh/python-cmd2/cmd2/pull/1615/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
unittestshttps://app.codecov.io/gh/python-cmd2/cmd2/pull/1615/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
Click herehttps://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2#carryforward-flags-in-the-pull-request-comment
☔ View full report in Codecov by Harnesshttps://app.codecov.io/gh/python-cmd2/cmd2/pull/1615?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
Share it herehttps://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-cmd2
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1615
https://github.com/tleonhardt
tleonhardthttps://github.com/tleonhardt
Mar 23, 2026 https://github.com/python-cmd2/cmd2/pull/1615#pullrequestreview-3995350087
View reviewed changes https://github.com/python-cmd2/cmd2/pull/1615/files/1c8d8f316e5c7014e4ffa6e7db579b92a2a2d0a9
https://github.com/kmvanbrunt
Updated comments and renamed a function.https://github.com/python-cmd2/cmd2/pull/1615/commits/4b9faca52d3dd3fe7aa8d20c1eeb137bb578e468
4b9facahttps://github.com/python-cmd2/cmd2/pull/1615/commits/4b9faca52d3dd3fe7aa8d20c1eeb137bb578e468
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
tleonhardthttps://github.com/tleonhardt
stale reviewhttps://github.com/python-cmd2/cmd2/pull/1615#pullrequestreview-3995350087
4b9facahttps://github.com/python-cmd2/cmd2/commit/4b9faca52d3dd3fe7aa8d20c1eeb137bb578e468
March 23, 2026 23:49https://github.com/python-cmd2/cmd2/pull/1615#event-23833061185
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
ca8495ehttps://github.com/python-cmd2/cmd2/commit/ca8495e4fe98171b1482b8e7388fb75f5456b218
Mar 23, 2026https://github.com/python-cmd2/cmd2/pull/1615#event-23833230264
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1615
https://github.com/kmvanbrunt
kmvanbrunthttps://github.com/kmvanbrunt
March 23, 2026 23:59https://github.com/python-cmd2/cmd2/pull/1615#event-23833231250
https://github.co/hiddenchars
https://github.com/python-cmd2/cmd2/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-cmd2%2Fcmd2%2Fpull%2F1615
https://github.com/tleonhardt
tleonhardt https://github.com/tleonhardt
https://github.com/python-cmd2/cmd2/pull/1615/files/1c8d8f316e5c7014e4ffa6e7db579b92a2a2d0a9
https://github.com/anselor
anselor https://github.com/anselor
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1615
https://github.com/kmvanbrunt
https://github.com/tleonhardt
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.