René's URL Explorer Experiment


Title: gh-139819: rlcompleter – avoid suggesting attributes not accessible on instances by ttw225 · Pull Request #139820 · python/cpython · GitHub

Open Graph Title: gh-139819: rlcompleter – avoid suggesting attributes not accessible on instances by ttw225 · Pull Request #139820 · python/cpython

X Title: gh-139819: rlcompleter – avoid suggesting attributes not accessible on instances by ttw225 · Pull Request #139820 · python/cpython

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

Open Graph Description: Fix tab-completion suggesting names that are not accessible on instances (e.g., Enum members showing __name__). Change In rlcompleter.attr_matches(), when getattr(thisobject, word, None) is None, o...

X Description: Fix tab-completion suggesting names that are not accessible on instances (e.g., Enum members showing __name__). Change In rlcompleter.attr_matches(), when getattr(thisobject, word, None) is None, o...

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

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:6012a4e4-fba6-4200-fdcb-0b3afbdab344
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD61C:229C6A:759B03:9D16B5:6A530BA6
html-safe-nonceadcbe76742c99f44203a4c95e2f025fb6fd64afd42c77257561eaae9b55011d0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjFDOjIyOUM2QTo3NTlCMDM6OUQxNkI1OjZBNTMwQkE2IiwidmlzaXRvcl9pZCI6IjMxMTM3NTk0MzkyMTMyMzUxMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac903160310139cb028dbff17fdd1e7ecf5fedcd7cd257e451a61ec190dadb185e
hovercard-subject-tagpull_request:2899304034
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/cpython/139820/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/21bbc5769caa5b49c70f32ebad4884bfd127f7e88119c58b401c24ed5b170eea/python/cpython/pull/139820
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/21bbc5769caa5b49c70f32ebad4884bfd127f7e88119c58b401c24ed5b170eea/python/cpython/pull/139820
og:image:altFix tab-completion suggesting names that are not accessible on instances (e.g., Enum members showing __name__). Change In rlcompleter.attr_matches(), when getattr(thisobject, word, None) is None, o...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamettw225
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/139820#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F139820
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%2F139820
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%2Fcpython
Reloadhttps://github.com/python/cpython/pull/139820
Reloadhttps://github.com/python/cpython/pull/139820
Reloadhttps://github.com/python/cpython/pull/139820
Please reload this pagehttps://github.com/python/cpython/pull/139820
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/139820
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
ethanfurmanhttps://github.com/ethanfurman
python:mainhttps://github.com/python/cpython/tree/main
ttw225:fix/rlcompleterhttps://github.com/ttw225/cpython/tree/fix/rlcompleter
Conversationhttps://github.com/python/cpython/pull/139820
Commits9 (9)https://github.com/python/cpython/pull/139820/commits
Checkshttps://github.com/python/cpython/pull/139820/checks
Files changedhttps://github.com/python/cpython/pull/139820/files
gh-139819: rlcompleter – avoid suggesting attributes not accessible on instanceshttps://github.com/python/cpython/pull/139820#top
ethanfurmanhttps://github.com/ethanfurman
python:mainhttps://github.com/python/cpython/tree/main
ttw225:fix/rlcompleterhttps://github.com/ttw225/cpython/tree/fix/rlcompleter
https://github.com/ttw225
ttw225https://github.com/ttw225
Oct 9, 2025https://github.com/python/cpython/pull/139820#issue-3497546125
Please reload this pagehttps://github.com/python/cpython/pull/139820
rlcompleter suggests attributes not accessible on instances (e.g., Enum member __name__) #139819https://github.com/python/cpython/issues/139819
Please reload this pagehttps://github.com/python/cpython/pull/139820
https://github.com/ttw225
fix(Lib/rlcompleter): prevent suggesting non-existent attributeshttps://github.com/python/cpython/pull/139820/commits/8466abcc81ad852f444a0d324b08867d70e92f0c
8466abchttps://github.com/python/cpython/pull/139820/commits/8466abcc81ad852f444a0d324b08867d70e92f0c
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Oct 9, 2025https://github.com/python/cpython/pull/139820#event-20176135485
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 9, 2025 https://github.com/python/cpython/pull/139820#ref-issue-3497545867
rlcompleter suggests attributes not accessible on instances (e.g., Enum member __name__) #139819 https://github.com/python/cpython/issues/139819
https://github.com/ttw225
docs(NEWS.d): gh-issue-139819https://github.com/python/cpython/pull/139820/commits/1655dc62578c40daa5c7f947f707d4787b8d035f
1655dc6https://github.com/python/cpython/pull/139820/commits/1655dc62578c40daa5c7f947f707d4787b8d035f
https://github.com/ttw225
ttw225https://github.com/ttw225
Oct 9, 2025https://github.com/python/cpython/pull/139820#issuecomment-3384102634
Please reload this pagehttps://github.com/python/cpython/pull/139820
ttw225https://github.com/ttw225
October 9, 2025 18:05https://github.com/python/cpython/pull/139820#commits-pushed-394432e
https://github.com/ttw225
refactor(Lib/rlcompleter.py): Simplify conditional expressionhttps://github.com/python/cpython/pull/139820/commits/394432e72c9e6787750638d512bdb7604a1468e5
394432ehttps://github.com/python/cpython/pull/139820/commits/394432e72c9e6787750638d512bdb7604a1468e5
https://github.com/ttw225
test(test_rlcompleter): adjust test_excessive_getattr call count expe…https://github.com/python/cpython/pull/139820/commits/d567f83898f01ec8944fabd44c515a13c355678f
d567f83https://github.com/python/cpython/pull/139820/commits/d567f83898f01ec8944fabd44c515a13c355678f
https://github.com/ttw225
fix(Lib/rlcompleter): handle unassigned __slots__ attributes in compl…https://github.com/python/cpython/pull/139820/commits/ad6ff8eba4e18df69a5f43c920e96550a34da24d
ad6ff8ehttps://github.com/python/cpython/pull/139820/commits/ad6ff8eba4e18df69a5f43c920e96550a34da24d
https://github.com/ttw225
refactor(Lib/rlcompleter): use sentinel to properly handle None-value…https://github.com/python/cpython/pull/139820/commits/8d98babad7415132abb3f6144b08257e0ced3985
8d98babhttps://github.com/python/cpython/pull/139820/commits/8d98babad7415132abb3f6144b08257e0ced3985
https://github.com/ttw225
test(test_rlcompleter): update test_excessive_getattr for sentinel ap…https://github.com/python/cpython/pull/139820/commits/14bd61e61fb972a958df49f1c5d2deebcae7c99f
14bd61ehttps://github.com/python/cpython/pull/139820/commits/14bd61e61fb972a958df49f1c5d2deebcae7c99f
https://github.com/ttw225
test(test_rlcompleter): remove unintended test_enum_member_completion…https://github.com/python/cpython/pull/139820/commits/76e32a3482543f1b2d67f158e44ab93bb85a6d30
76e32a3https://github.com/python/cpython/pull/139820/commits/76e32a3482543f1b2d67f158e44ab93bb85a6d30
https://github.com/ttw225
ttw225https://github.com/ttw225
Oct 9, 2025https://github.com/python/cpython/pull/139820#issuecomment-3386933389
Please reload this pagehttps://github.com/python/cpython/pull/139820
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Apr 30, 2026https://github.com/python/cpython/pull/139820#issuecomment-4352451687
Please reload this pagehttps://github.com/python/cpython/pull/139820
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
Apr 30, 2026https://github.com/python/cpython/pull/139820#event-25033574313
https://github.com/ethanfurman
Merge branch 'main' into fix/rlcompleterhttps://github.com/python/cpython/pull/139820/commits/7482968f1495d7826f868928107d70dff4b2ef2c
7482968https://github.com/python/cpython/pull/139820/commits/7482968f1495d7826f868928107d70dff4b2ef2c
https://github.com/ethanfurman
ethanfurmanhttps://github.com/ethanfurman
81c1cdchttps://github.com/python/cpython/commit/81c1cdcf4a9aa08cef567e3a75480099db470052
Jun 9, 2026https://github.com/python/cpython/pull/139820#event-26536648991
Please reload this pagehttps://github.com/python/cpython/pull/139820
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jun 9, 2026https://github.com/python/cpython/pull/139820#event-26536651552
clin1234https://github.com/clin1234
Jun 9, 2026 https://github.com/python/cpython/pull/139820#ref-commit-864de8d
https://github.com/ttw225
https://github.com/ethanfurman
pythongh-139819https://github.com/python/cpython/issues/139819
: rlcompleter – avoid suggesting attributes not access…https://github.com/clin1234/cpython/commit/864de8df8477c109331136e7c946eaa9842d4fca
864de8dhttps://github.com/clin1234/cpython/commit/864de8df8477c109331136e7c946eaa9842d4fca
pythonGH-139820https://github.com/python/cpython/pull/139820
https://github.com/danielhollas
danielhollashttps://github.com/danielhollas
Jun 9, 2026 https://github.com/python/cpython/pull/139820#pullrequestreview-4462186064
View reviewed changes https://github.com/python/cpython/pull/139820/files/7482968f1495d7826f868928107d70dff4b2ef2c
Lib/rlcompleter.pyhttps://github.com/python/cpython/pull/139820/files/7482968f1495d7826f868928107d70dff4b2ef2c#diff-4c595af1c40cad3e9df9558541803a1e3b09173e61cd6ebcc7999baf2c77a876
danielhollashttps://github.com/danielhollas
Jun 9, 2026https://github.com/python/cpython/pull/139820#discussion_r3383624838
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/139820
Viicoshttps://github.com/Viicos
Jun 10, 2026https://github.com/python/cpython/pull/139820#discussion_r3386410787
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#151222https://github.com/python/cpython/pull/151222
Please reload this pagehttps://github.com/python/cpython/pull/139820
https://github.com/ttw225
ttw225https://github.com/ttw225
Jun 10, 2026 https://github.com/python/cpython/pull/139820#ref-pullrequest-4629252194
docs(open-source): mark cpython/rlcompleter PR as merged ttw225/blog#14 https://github.com/ttw225/blog/pull/14
https://github.com/ttw225
ttw225https://github.com/ttw225
June 11, 2026 02:41https://github.com/python/cpython/pull/139820#event-26604816475
philthompson10https://github.com/philthompson10
Jun 17, 2026 https://github.com/python/cpython/pull/139820#ref-commit-53ccdd0
https://github.com/ttw225
https://github.com/ethanfurman
https://github.com/philthompson10
pythongh-139819https://github.com/python/cpython/issues/139819
: rlcompleter – avoid suggesting attributes not access…https://github.com/philthompson10/cpython/commit/53ccdd025079c0c88f04c3a4eacdfc07af229a4e
53ccdd0https://github.com/philthompson10/cpython/commit/53ccdd025079c0c88f04c3a4eacdfc07af229a4e
pythonGH-139820https://github.com/python/cpython/pull/139820
https://github.co/hiddenchars
https://github.com/python/cpython/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%2Fcpython%2Fpull%2F139820
https://github.com/danielhollas
danielhollas https://github.com/danielhollas
https://github.com/python/cpython/pull/139820/files/7482968f1495d7826f868928107d70dff4b2ef2c
https://github.com/Viicos
Viicos https://github.com/Viicos
https://github.com/python/cpython/pull/139820/files/7482968f1495d7826f868928107d70dff4b2ef2c
stale https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astale
Please reload this pagehttps://github.com/python/cpython/pull/139820
https://github.com/ttw225
https://github.com/danielhollas
https://github.com/Viicos
https://github.com/ethanfurman
https://github.com/nazeerali4325-commits
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.