René's URL Explorer Experiment


Title: bpo-35196: optimize Squeezer's write() interception by taleinat · Pull Request #10454 · python/cpython · GitHub

Open Graph Title: bpo-35196: optimize Squeezer's write() interception by taleinat · Pull Request #10454 · python/cpython

X Title: bpo-35196: optimize Squeezer's write() interception by taleinat · Pull Request #10454 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: This also cleans up and improves the testing of count_lines(), which has been significantly changed as part of this optimization. https://bugs.python.org/issue35196

X Description: This also cleans up and improves the testing of count_lines(), which has been significantly changed as part of this optimization. https://bugs.python.org/issue35196

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:fbdc13ed-5b5d-ad12-65cd-4ca00edb3f5e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC500:18BA88:92379BE:CC58F9F:6A50988C
html-safe-noncea3d1107e69ea525d8e49816a4264b418b5252859c92db793fde39b8e68189624
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTAwOjE4QkE4ODo5MjM3OUJFOkNDNThGOUY6NkE1MDk4OEMiLCJ2aXNpdG9yX2lkIjoiNTU2MDE0NTkwMzA0NDU2NTEzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac85c9a4de29f82455244aa25e1af11001bf118e6b00fa60aecca53619a8a46162
hovercard-subject-tagpull_request:229915112
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/10454/commits
twitter:imagehttps://opengraph.githubassets.com/1d10b42fad1b1e0d884e2323f680392a81d59ecc839f7dfafadecb1cddae7df8/python/cpython/pull/10454
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1d10b42fad1b1e0d884e2323f680392a81d59ecc839f7dfafadecb1cddae7df8/python/cpython/pull/10454
og:image:altThis also cleans up and improves the testing of count_lines(), which has been significantly changed as part of this optimization. https://bugs.python.org/issue35196
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametaleinat
hostnamegithub.com
expected-hostnamegithub.com
Noned6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb
turbo-cache-controlno-cache
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
release7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/10454/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F10454%2Fcommits
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%2F10454%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/10454/commits
Reloadhttps://github.com/python/cpython/pull/10454/commits
Reloadhttps://github.com/python/cpython/pull/10454/commits
Please reload this pagehttps://github.com/python/cpython/pull/10454/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/10454/commits
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k 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
taleinathttps://github.com/taleinat
python:masterhttps://github.com/python/cpython/tree/master
taleinat:bpo-35196/optimize_squeezer_writehttps://github.com/taleinat/cpython/tree/bpo-35196/optimize_squeezer_write
Conversationhttps://github.com/python/cpython/pull/10454
Commits26 (26)https://github.com/python/cpython/pull/10454/commits
Checkshttps://github.com/python/cpython/pull/10454/checks
Files changedhttps://github.com/python/cpython/pull/10454/files
bpo-35196: optimize Squeezer's write() interceptionhttps://github.com/python/cpython/pull/10454/commits#top
taleinathttps://github.com/taleinat
python:masterhttps://github.com/python/cpython/tree/master
taleinat:bpo-35196/optimize_squeezer_writehttps://github.com/taleinat/cpython/tree/bpo-35196/optimize_squeezer_write
bpo-35196: optimize Squeezer's write() interceptionhttps://github.com/python/cpython/pull/10454/commits/25259921eab001ec8620a7ba46aaf47917ac9965
https://github.com/taleinat
taleinathttps://github.com/python/cpython/commits?author=taleinat
2525992https://github.com/python/cpython/pull/10454/commits/25259921eab001ec8620a7ba46aaf47917ac9965
https://github.com/python/cpython/tree/25259921eab001ec8620a7ba46aaf47917ac9965
remove dead, old test code from test_squeezer.pyhttps://github.com/python/cpython/pull/10454/commits/6b60df6e2625a69d5daeb02aee65b15d6633e7fb
https://github.com/taleinat
taleinathttps://github.com/python/cpython/commits?author=taleinat
6b60df6https://github.com/python/cpython/pull/10454/commits/6b60df6e2625a69d5daeb02aee65b15d6633e7fb
https://github.com/python/cpython/tree/6b60df6e2625a69d5daeb02aee65b15d6633e7fb
bpo-35196: fix test_reload() failinghttps://github.com/python/cpython/pull/10454/commits/0e30a72e1a59df0ff193ad3b12a526cd41b55523
https://github.com/taleinat
taleinathttps://github.com/python/cpython/commits?author=taleinat
0e30a72https://github.com/python/cpython/pull/10454/commits/0e30a72e1a59df0ff193ad3b12a526cd41b55523
https://github.com/python/cpython/tree/0e30a72e1a59df0ff193ad3b12a526cd41b55523
remove unnecessary additional check which doesn't improve performancehttps://github.com/python/cpython/pull/10454/commits/76e8ea271adf34e5a05672b9d407851fa033d856
https://github.com/taleinat
taleinathttps://github.com/python/cpython/commits?author=taleinat
76e8ea2https://github.com/python/cpython/pull/10454/commits/76e8ea271adf34e5a05672b9d407851fa033d856
https://github.com/python/cpython/tree/76e8ea271adf34e5a05672b9d407851fa033d856
instantiate Squeezer only on PyShell windowshttps://github.com/python/cpython/pull/10454/commits/65ee0565f4b0b05c5cf3bdc9e6eaa5e35cd00798
https://github.com/taleinat
taleinathttps://github.com/python/cpython/commits?author=taleinat
65ee056https://github.com/python/cpython/pull/10454/commits/65ee0565f4b0b05c5cf3bdc9e6eaa5e35cd00798
https://github.com/python/cpython/tree/65ee0565f4b0b05c5cf3bdc9e6eaa5e35cd00798
hard-code tab width to 8 (always true for IDLE's shell)https://github.com/python/cpython/pull/10454/commits/485d954a3bb2d2e23fed6dcb9beaf13b464ce131
https://github.com/taleinat
taleinathttps://github.com/python/cpython/commits?author=taleinat
485d954https://github.com/python/cpython/pull/10454/commits/485d954a3bb2d2e23fed6dcb9beaf13b464ce131
https://github.com/python/cpython/tree/485d954a3bb2d2e23fed6dcb9beaf13b464ce131
Merge remote-tracking branch 'origin/master' into pr_10454https://github.com/python/cpython/pull/10454/commits/22f1c4fd03d5eb234598a548af49e0c57cd72839
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
22f1c4fhttps://github.com/python/cpython/pull/10454/commits/22f1c4fd03d5eb234598a548af49e0c57cd72839
https://github.com/python/cpython/tree/22f1c4fd03d5eb234598a548af49e0c57cd72839
Add blurb and idlelib news.https://github.com/python/cpython/pull/10454/commits/5f0e69fda6dc73a70e0408ce5398eff2d3dec3a2
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
5f0e69fhttps://github.com/python/cpython/pull/10454/commits/5f0e69fda6dc73a70e0408ce5398eff2d3dec3a2
https://github.com/python/cpython/tree/5f0e69fda6dc73a70e0408ce5398eff2d3dec3a2
Condense character width comment and update to 8.6.https://github.com/python/cpython/pull/10454/commits/23af0403709fe67e1205c65225556b3a1dd8f7a0
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
23af040https://github.com/python/cpython/pull/10454/commits/23af0403709fe67e1205c65225556b3a1dd8f7a0
https://github.com/python/cpython/tree/23af0403709fe67e1205c65225556b3a1dd8f7a0
In test, change deprecated assertEquals to assertEqual.https://github.com/python/cpython/pull/10454/commits/8a4ca02160b4ef8f77b5c48aed555ccdc8323ae5
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
8a4ca02https://github.com/python/cpython/pull/10454/commits/8a4ca02160b4ef8f77b5c48aed555ccdc8323ae5
https://github.com/python/cpython/tree/8a4ca02160b4ef8f77b5c48aed555ccdc8323ae5
Add coverage information. Details in comment.https://github.com/python/cpython/pull/10454/commits/1f56ee8000414ec2d76b11deba9ed04c0a087388
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
1f56ee8https://github.com/python/cpython/pull/10454/commits/1f56ee8000414ec2d76b11deba9ed04c0a087388
https://github.com/python/cpython/tree/1f56ee8000414ec2d76b11deba9ed04c0a087388
Add X windows comment.https://github.com/python/cpython/pull/10454/commits/390d0899a13442eaa2e54f8a02000770df339a85
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
390d089https://github.com/python/cpython/pull/10454/commits/390d0899a13442eaa2e54f8a02000770df339a85
https://github.com/python/cpython/tree/390d0899a13442eaa2e54f8a02000770df339a85
Move PyShell only code to pyshell.PyShell.https://github.com/python/cpython/pull/10454/commits/8e12a8169d9b16336a07b2b723e2d99769860269
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
8e12a81https://github.com/python/cpython/pull/10454/commits/8e12a8169d9b16336a07b2b723e2d99769860269
https://github.com/python/cpython/tree/8e12a8169d9b16336a07b2b723e2d99769860269
Use existing local reference.https://github.com/python/cpython/pull/10454/commits/ee25bac1684e766a32901c0c8e6ae63686d2be4e
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
ee25bachttps://github.com/python/cpython/pull/10454/commits/ee25bac1684e766a32901c0c8e6ae63686d2be4e
https://github.com/python/cpython/tree/ee25bac1684e766a32901c0c8e6ae63686d2be4e
Fix comments (# Cap ... length ... end.) in squeezer.py.https://github.com/python/cpython/pull/10454/commits/9ac5156ea72636a94ee173e66b4584e083bf282f
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
9ac5156https://github.com/python/cpython/pull/10454/commits/9ac5156ea72636a94ee173e66b4584e083bf282f
https://github.com/python/cpython/tree/9ac5156ea72636a94ee173e66b4584e083bf282f
Fix comments in test_squeezer to PEP standards. Uncomment testhttps://github.com/python/cpython/pull/10454/commits/6e1556dc7bc3d96633eb3bc94b7b7ad2fb43b79e
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
6e1556dhttps://github.com/python/cpython/pull/10454/commits/6e1556dc7bc3d96633eb3bc94b7b7ad2fb43b79e
https://github.com/python/cpython/tree/6e1556dc7bc3d96633eb3bc94b7b7ad2fb43b79e
fix bug in setting Squeezer._instance_weakref and improve test coveragehttps://github.com/python/cpython/pull/10454/commits/2f0e0a5b53b33676c45f1d13c1e60f51cff08717
https://github.com/taleinat
taleinathttps://github.com/python/cpython/commits?author=taleinat
2f0e0a5https://github.com/python/cpython/pull/10454/commits/2f0e0a5b53b33676c45f1d13c1e60f51cff08717
https://github.com/python/cpython/tree/2f0e0a5b53b33676c45f1d13c1e60f51cff08717
add a do-nothing test case for Squeezer.reload(), and fix test cleanuphttps://github.com/python/cpython/pull/10454/commits/37daa8a517eb287a810fc47895a187948742e8f5
https://github.com/taleinat
taleinathttps://github.com/python/cpython/commits?author=taleinat
37daa8ahttps://github.com/python/cpython/pull/10454/commits/37daa8a517eb287a810fc47895a187948742e8f5
https://github.com/python/cpython/tree/37daa8a517eb287a810fc47895a187948742e8f5
re-format inline commentshttps://github.com/python/cpython/pull/10454/commits/62ca6d38a06b2462fb4eaf895aa3506607ed8595
https://github.com/taleinat
taleinathttps://github.com/python/cpython/commits?author=taleinat
62ca6d3https://github.com/python/cpython/pull/10454/commits/62ca6d38a06b2462fb4eaf895aa3506607ed8595
https://github.com/python/cpython/tree/62ca6d38a06b2462fb4eaf895aa3506607ed8595
Update test_squeezer, trigger retesthttps://github.com/python/cpython/pull/10454/commits/3f7790564f0cd71d6081d516ceaf5edb7523847f
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
3f77905https://github.com/python/cpython/pull/10454/commits/3f7790564f0cd71d6081d516ceaf5edb7523847f
https://github.com/python/cpython/tree/3f7790564f0cd71d6081d516ceaf5edb7523847f
Reverse asssertions to test 2ndhttps://github.com/python/cpython/pull/10454/commits/17bc8d99caf33bc3f5e17e4b74684e99273f57b2
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
17bc8d9https://github.com/python/cpython/pull/10454/commits/17bc8d99caf33bc3f5e17e4b74684e99273f57b2
https://github.com/python/cpython/tree/17bc8d99caf33bc3f5e17e4b74684e99273f57b2
Change taked to takenhttps://github.com/python/cpython/pull/10454/commits/69eaa4fd39f9eb1f61150d609eddb8c35052a137
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
69eaa4fhttps://github.com/python/cpython/pull/10454/commits/69eaa4fd39f9eb1f61150d609eddb8c35052a137
https://github.com/python/cpython/tree/69eaa4fd39f9eb1f61150d609eddb8c35052a137
fix test_reload() check that zero_with_char has increasedhttps://github.com/python/cpython/pull/10454/commits/3c3fb9de29442944e4e47f72e5d4820ac634e50e
https://github.com/taleinat
taleinathttps://github.com/python/cpython/commits?author=taleinat
3c3fb9dhttps://github.com/python/cpython/pull/10454/commits/3c3fb9de29442944e4e47f72e5d4820ac634e50e
https://github.com/python/cpython/tree/3c3fb9de29442944e4e47f72e5d4820ac634e50e
Change 'name' to 'font' in load_font Font().https://github.com/python/cpython/pull/10454/commits/05543b0791aa44945e25c7dba7898e5082766c59
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
05543b0https://github.com/python/cpython/pull/10454/commits/05543b0791aa44945e25c7dba7898e5082766c59
https://github.com/python/cpython/tree/05543b0791aa44945e25c7dba7898e5082766c59
Reset font size by resetting font option.https://github.com/python/cpython/pull/10454/commits/66c01e5c94414adb3c7796b61cc7e0f4d65aa7a2
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
66c01e5https://github.com/python/cpython/pull/10454/commits/66c01e5c94414adb3c7796b61cc7e0f4d65aa7a2
https://github.com/python/cpython/tree/66c01e5c94414adb3c7796b61cc7e0f4d65aa7a2
minor code cleanup in Squeezer's mywrite()https://github.com/python/cpython/pull/10454/commits/ae8a483615ed254084255ca4c67c95c0b890f092
https://github.com/taleinat
taleinathttps://github.com/python/cpython/commits?author=taleinat
ae8a483https://github.com/python/cpython/pull/10454/commits/ae8a483615ed254084255ca4c67c95c0b890f092
https://github.com/python/cpython/tree/ae8a483615ed254084255ca4c67c95c0b890f092
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.