René's URL Explorer Experiment


Title: gh-146044: Fix ctrl-w (unix-word-rubout) to use whitespace word boundaries by kimimgo · Pull Request #146174 · python/cpython · GitHub

Open Graph Title: gh-146044: Fix ctrl-w (unix-word-rubout) to use whitespace word boundaries by kimimgo · Pull Request #146174 · python/cpython

X Title: gh-146044: Fix ctrl-w (unix-word-rubout) to use whitespace word boundaries by kimimgo · Pull Request #146174 · python/cpython

Description: Fixes #146044 Summary The unix-word-rubout command (ctrl-w) was using bow() which treats punctuation as word separators via the syntax table. This differs from bash/readline's unix-word-rubout which uses only whitespace as boundaries. Changes reader.py: Add bow_whitespace() method — same as bow() but only considers spaces and newlines as word boundaries commands.py: unix_word_rubout now calls bow_whitespace() instead of bow() test_reader.py: Add TestBowWhitespace class with 4 tests verifying the whitespace-only behavior and the difference from bow() Example With buffer foo.bar baz and cursor at end: Before: ctrl-w deletes baz, then bar, then foo (3 operations) After: ctrl-w deletes baz, then foo.bar (2 operations, matching bash) The existing bow() method used by backward-kill-word (M-Backspace) is unchanged. Issue: gh-146044

Open Graph Description: Fixes #146044 Summary The unix-word-rubout command (ctrl-w) was using bow() which treats punctuation as word separators via the syntax table. This differs from bash/readline's unix-word-rubout ...

X Description: Fixes #146044 Summary The unix-word-rubout command (ctrl-w) was using bow() which treats punctuation as word separators via the syntax table. This differs from bash/readline's unix-word-rub...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:aa951ee3-69cd-856c-eefc-d5f0f89ffee7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD7A8:2E6F49:2FD2C:4070C:6A521C7F
html-safe-nonced703dcdea21ead405e2fececbcb1a3a1421c26da5ac8c24030bb3fc1bdf91da8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0E4OjJFNkY0OToyRkQyQzo0MDcwQzo2QTUyMUM3RiIsInZpc2l0b3JfaWQiOiI2OTkxMTAyNzU0MzgyMjI0NjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac38d93e159494fda7def7fa0e1eeb00898ee9e3164afd28b8eedc251f20b9cd84
hovercard-subject-tagpull_request:3420633865
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/146174/files
twitter:imagehttps://avatars.githubusercontent.com/u/21175731?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/21175731?s=400&v=4
og:image:altFixes #146044 Summary The unix-word-rubout command (ctrl-w) was using bow() which treats punctuation as word separators via the syntax table. This differs from bash/readline's unix-word-rubout ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/146174/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F146174%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%2F146174%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/146174/files
Reloadhttps://github.com/python/cpython/pull/146174/files
Reloadhttps://github.com/python/cpython/pull/146174/files
Please reload this pagehttps://github.com/python/cpython/pull/146174/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/146174/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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
kimimgohttps://github.com/kimimgo
python:mainhttps://github.com/python/cpython/tree/main
kimimgo:fix/pyrepl-ctrl-w-146044https://github.com/kimimgo/cpython/tree/fix/pyrepl-ctrl-w-146044
Conversation 31 https://github.com/python/cpython/pull/146174
Commits 8 https://github.com/python/cpython/pull/146174/commits
Checks 57 https://github.com/python/cpython/pull/146174/checks
Files changed 4 https://github.com/python/cpython/pull/146174/files
gh-146044: Fix ctrl-w (unix-word-rubout) to use whitespace word boundaries https://github.com/python/cpython/pull/146174/files#top
Show all changes 8 commits https://github.com/python/cpython/pull/146174/files
678eefd Fix ctrl-w (unix-word-rubout) to use whitespace word boundaries (#146… kimimgo Mar 19, 2026 https://github.com/python/cpython/pull/146174/commits/678eefd3fa83f9dc6b81180ae48ca08faf4a773b
853cb8c Fix test: prepare_console() requires events argument kimimgo Mar 19, 2026 https://github.com/python/cpython/pull/146174/commits/853cb8ca3e293b2d6e8373eeab2887505984e95b
99023b2 Add NEWS entry for gh-146044 kimimgo Mar 19, 2026 https://github.com/python/cpython/pull/146174/commits/99023b25adbf4ab49c861588dc21e0147902a477
e6d27d9 Address review: rename bow_ws, move tests to TestReader, add tab support kimimgo Mar 21, 2026 https://github.com/python/cpython/pull/146174/commits/e6d27d9fa0956d831dec197d3e363f269190e842
9f54090 Fix trailing blank lines in test_reader.py kimimgo Mar 21, 2026 https://github.com/python/cpython/pull/146174/commits/9f540905f268c3a2a59107e6999f826e826ab7bb
140faf1 Address review: close docstring on separate line kimimgo Mar 22, 2026 https://github.com/python/cpython/pull/146174/commits/140faf1148787f3da3a24c59e48aef8ed5ac44b9
c8d1759 Address review: remove issue URL from docstring, add newline test kimimgo Mar 27, 2026 https://github.com/python/cpython/pull/146174/commits/c8d17597d9e3f3c8f4c90b075cff0153f9313057
0a25f0b Address review: use index() instead of magic number for pos kimimgo Mar 31, 2026 https://github.com/python/cpython/pull/146174/commits/0a25f0b83da5fd84bcda99475e2467da8ba5304e
Clear filters https://github.com/python/cpython/pull/146174/files
Please reload this pagehttps://github.com/python/cpython/pull/146174/files
Please reload this pagehttps://github.com/python/cpython/pull/146174/files
commands.py https://github.com/python/cpython/pull/146174/files#diff-5412d10951788bf3e38ed1d9c8406694e332f8cd3505252136bb896cde16b907
reader.py https://github.com/python/cpython/pull/146174/files#diff-c016a633684c719cad647f2a6239a9a9ceda9a11b476b67e8ff3d7379735de50
test_reader.py https://github.com/python/cpython/pull/146174/files#diff-6f66163ec869997591163cc4eec0a1232571f464f1a243db2df130e1803eadaf
2026-03-20-00-00-01.gh-issue-146044.WsCtrl.rst https://github.com/python/cpython/pull/146174/files#diff-41127925b080e8201ce36ad203c12e888d0a86e1c43940be15db77b5f1d7f060
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L561
Lib/_pyrepl/commands.pyhttps://github.com/python/cpython/pull/146174/files#diff-5412d10951788bf3e38ed1d9c8406694e332f8cd3505252136bb896cde16b907
View file https://github.com/python/cpython/blob/0a25f0b83da5fd84bcda99475e2467da8ba5304e/Lib/_pyrepl/commands.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/146174/{{ revealButtonHref }}
https://github.com/python/cpython/pull/146174/files#diff-5412d10951788bf3e38ed1d9c8406694e332f8cd3505252136bb896cde16b907
https://github.com/python/cpython/pull/146174/files#diff-5412d10951788bf3e38ed1d9c8406694e332f8cd3505252136bb896cde16b907
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L561
Lib/_pyrepl/reader.pyhttps://github.com/python/cpython/pull/146174/files#diff-c016a633684c719cad647f2a6239a9a9ceda9a11b476b67e8ff3d7379735de50
View file https://github.com/python/cpython/blob/0a25f0b83da5fd84bcda99475e2467da8ba5304e/Lib/_pyrepl/reader.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/146174/{{ revealButtonHref }}
https://github.com/python/cpython/pull/146174/files#diff-c016a633684c719cad647f2a6239a9a9ceda9a11b476b67e8ff3d7379735de50
https://github.com/python/cpython/pull/146174/files#diff-c016a633684c719cad647f2a6239a9a9ceda9a11b476b67e8ff3d7379735de50
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L562
Lib/test/test_pyrepl/test_reader.pyhttps://github.com/python/cpython/pull/146174/files#diff-6f66163ec869997591163cc4eec0a1232571f464f1a243db2df130e1803eadaf
View file https://github.com/python/cpython/blob/0a25f0b83da5fd84bcda99475e2467da8ba5304e/Lib/test/test_pyrepl/test_reader.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/146174/{{ revealButtonHref }}
https://github.com/python/cpython/pull/146174/files#diff-6f66163ec869997591163cc4eec0a1232571f464f1a243db2df130e1803eadaf
picnixzhttps://github.com/picnixz
Mar 21, 2026https://github.com/python/cpython/pull/146174/files#r2969615998
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/146174/files
picnixzhttps://github.com/picnixz
Mar 21, 2026https://github.com/python/cpython/pull/146174/files#r2969619027
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/146174/files
picnixzhttps://github.com/picnixz
Mar 21, 2026https://github.com/python/cpython/pull/146174/files#r2969615563
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/146174/files
https://github.com/python/cpython/pull/146174/files#diff-6f66163ec869997591163cc4eec0a1232571f464f1a243db2df130e1803eadaf
Misc/NEWS.d/next/Library/2026-03-20-00-00-01.gh-issue-146044.WsCtrl.rsthttps://github.com/python/cpython/pull/146174/files#diff-41127925b080e8201ce36ad203c12e888d0a86e1c43940be15db77b5f1d7f060
View file https://github.com/python/cpython/blob/0a25f0b83da5fd84bcda99475e2467da8ba5304e/Misc/NEWS.d/next/Library/2026-03-20-00-00-01.gh-issue-146044.WsCtrl.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/146174/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/146174/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.