René's URL Explorer Experiment


Title: Reconsider gh-88915 changes rlcompleter since exceptions in descriptors cause auto completion to fail · Issue #112821 · python/cpython · GitHub

Open Graph Title: Reconsider gh-88915 changes rlcompleter since exceptions in descriptors cause auto completion to fail · Issue #112821 · python/cpython

X Title: Reconsider gh-88915 changes rlcompleter since exceptions in descriptors cause auto completion to fail · Issue #112821 · python/cpython

Description: Bug report Bug description: In BPO 44752 (#88915), it was reported that tab completions execute @property getters. This was fixed in two stages: #27401: no longer call property getters #27401: No longer catch errors raised by a call to g...

Open Graph Description: Bug report Bug description: In BPO 44752 (#88915), it was reported that tab completions execute @property getters. This was fixed in two stages: #27401: no longer call property getters #27401: No l...

X Description: Bug report Bug description: In BPO 44752 (#88915), it was reported that tab completions execute @property getters. This was fixed in two stages: #27401: no longer call property getters #27401: No l...

Opengraph URL: https://github.com/python/cpython/issues/112821

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Reconsider gh-88915 changes rlcompleter since exceptions in descriptors cause auto completion to fail","articleBody":"# Bug report\r\n\r\n### Bug description:\r\n\r\nIn BPO [44752](https://bugs.python.org/issue44752) (#88915), it was reported that tab completions execute `@property` getters. This was fixed in two stages:\r\n\r\n1. https://github.com/python/cpython/pull/27401: no longer call property getters\r\n2. https://github.com/python/cpython/pull/27401: No longer catch errors raised by a call to getattr.\r\n\r\nIt looks like when investigating/solving this issue, it was unconsidered that `@property` isn't the only case where calling an underlying method might be undesirable. For example, in the [NVDA project](https://github.com/nvaccess/nvda), we have the following non-data descriptor (simplified for clarity):\r\n\r\n```python\r\nclass Getter:\r\n    def __init__(self, fget):\r\n        self.fget = fget\r\n\r\n    def __get__(self, instance, owner):\r\n        if isinstance(self.fget, classmethod):\r\n            return self.fget.__get__(instance, owner)()\r\n        elif instance is None:\r\n            return self\r\n        return self.fget(instance)\r\n\r\n\r\nclass SomeClass:\r\n    @Getter\r\n    def some_prop(self):\r\n        raise NotImplementedError\r\n```\r\n\r\nIf we'd create an instance of SomeClass and try to autocomplete, `rlcompleter.Completer.attr_matches` would fail with the `NotImplementedError` raised by `some_prop`\r\n\r\nI'd propose one of the following:\r\n\r\n1. Restore the try/except removed in #27401\r\n2. Create abstract classes for descriptors in _collections_abc (e.g. ImplementsGet, ImplementsSet, ImplementsDelete) and in rlcompleter, rather than checking for `isinstance(obj, property)`, use `isinstance(obj, ImplementsGet)`. This might cause false positives for method descriptors though.\r\n\r\n### CPython versions tested on:\r\n\r\n3.11\r\n\r\n### Operating systems tested on:\r\n\r\nWindows\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-149577\n* gh-149656\n* gh-149657\n* gh-149658\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/LeonarddeR","@type":"Person","name":"LeonarddeR"},"datePublished":"2023-12-07T07:02:03Z","url":"https://github.com/python/cpython/issues/112821"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1e521844-0cdb-6057-8103-7f0cac0e8766
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8D26:F33A8:344217:491B7B:6AF84628
html-safe-nonce610145e32c759730f585032afe574b65151da8deb476b39b397ec62c05df18b3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDI2OkYzM0E4OjM0NDIxNzo0OTFCN0I6NkFGODQ2MjgiLCJ2aXNpdG9yX2lkIjoiODAxODU2ODYzNDc3Njk2MjYwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd3b12876aec8d0ded015fc8861cb8efc8fa1a34aefd9556db1f82a6325194745
hovercard-subject-tagissue:2030041844
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/112821/issue_layout
twitter:imagehttps://opengraph.githubassets.com/006ea132eb7c959d130d1cc4efa6fd6d73d7b6124a89c662853b2de9e62530f3/python/cpython/issues/112821
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/006ea132eb7c959d130d1cc4efa6fd6d73d7b6124a89c662853b2de9e62530f3/python/cpython/issues/112821
og:image:altBug report Bug description: In BPO 44752 (#88915), it was reported that tab completions execute @property getters. This was fixed in two stages: #27401: no longer call property getters #27401: No l...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLeonarddeR
hostnamegithub.com
expected-hostnamegithub.com
None5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db
turbo-cache-controlno-preview
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
release653be32ff5c755082a4db662491bfbbcfc9112c1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/112821#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F112821
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F112821
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/112821
Reloadhttps://github.com/python/cpython/issues/112821
Reloadhttps://github.com/python/cpython/issues/112821
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/pulse
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/112821
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/112821
Reconsider gh-88915 changes rlcompleter since exceptions in descriptors cause auto completion to failhttps://github.com/python/cpython/issues/112821#top
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/LeonarddeR
LeonarddeRhttps://github.com/LeonarddeR
on Dec 7, 2023https://github.com/python/cpython/issues/112821#issue-2030041844
44752https://bugs.python.org/issue44752
#88915https://github.com/python/cpython/issues/88915
bpo-44752: Make rlcompleter not call @property methods #27401https://github.com/python/cpython/pull/27401
bpo-44752: Make rlcompleter not call @property methods #27401https://github.com/python/cpython/pull/27401
NVDA projecthttps://github.com/nvaccess/nvda
bpo-44752: Make rlcompleter not call @property methods #27401https://github.com/python/cpython/pull/27401
gh-112821: Fix rlcompleter failures on objects with descriptors #149577https://github.com/python/cpython/pull/149577
[3.15] gh-112821: Fix rlcompleter failures on objects with descriptors (GH-149577) #149656https://github.com/python/cpython/pull/149656
[3.14] gh-112821: Fix rlcompleter failures on objects with descriptors (GH-149577) #149657https://github.com/python/cpython/pull/149657
[3.13] gh-112821: Fix rlcompleter failures on objects with descriptors (GH-149577) #149658https://github.com/python/cpython/pull/149658
LeonarddeRhttps://github.com/LeonarddeR
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Dec 7, 2023https://github.com/python/cpython/issues/112821#event-11177828224
https://github.com/LeonarddeR
LeonarddeRhttps://github.com/LeonarddeR
on Dec 7, 2023https://github.com/python/cpython/issues/112821#issuecomment-1844785140
@jdevries3133https://github.com/jdevries3133
https://github.com/JeanDidierGaraud
JeanDidierGaraudhttps://github.com/JeanDidierGaraud
on Mar 20, 2024https://github.com/python/cpython/issues/112821#issuecomment-2009308720
@LeonarddeRhttps://github.com/LeonarddeR
https://github.com/Demi-Lune/cython_property_is_attributehttps://github.com/Demi-Lune/cython_property_is_attribute
@LeonarddeRhttps://github.com/LeonarddeR
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on May 8, 2026https://github.com/python/cpython/issues/112821#issuecomment-4408749434
picnixzhttps://github.com/picnixz
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
on May 8, 2026https://github.com/python/cpython/issues/112821#event-25317835681
picnixzhttps://github.com/picnixz
on May 8, 2026https://github.com/python/cpython/issues/112821#event-25319258435
mdboomhttps://github.com/mdboom
on May 8, 2026https://github.com/python/cpython/issues/112821#event-25319418144
pythongh-112821: Fix rlcompleter failures on objects with descriptorshttps://github.com/mdboom/cpython/commit/2da4d91b54d216493f303b31cb8a466ab6efd0f5
pythongh-112821https://github.com/python/cpython/issues/112821
2da4d91https://github.com/mdboom/cpython/commit/2da4d91b54d216493f303b31cb8a466ab6efd0f5
gh-112821: Fix rlcompleter failures on objects with descriptors (#149577https://github.com/python/cpython/commit/f23a1837d7156c4c478528321a423eae2b31e4bf
gh-112821https://github.com/python/cpython/issues/112821
#149577https://github.com/python/cpython/pull/149577
f23a183https://github.com/python/cpython/commit/f23a1837d7156c4c478528321a423eae2b31e4bf
[3.15] gh-112821: Fix rlcompleter failures on objects with descriptors (https://github.com/python/cpython/commit/b4f2e882032d71b2c60d74befdc2615d5596f2fe
gh-112821https://github.com/python/cpython/issues/112821
b4f2e88https://github.com/python/cpython/commit/b4f2e882032d71b2c60d74befdc2615d5596f2fe
[3.14] gh-112821: Fix rlcompleter failures on objects with descriptors (https://github.com/python/cpython/commit/0aeb040979c2e0237a3e6f0f5365567785969bdb
gh-112821https://github.com/python/cpython/issues/112821
0aeb040https://github.com/python/cpython/commit/0aeb040979c2e0237a3e6f0f5365567785969bdb
[3.13] gh-112821: Fix rlcompleter failures on objects with descriptors (https://github.com/python/cpython/commit/5ad22a8de606ac7459ebf7cd84e4388b8c41ffab
gh-112821https://github.com/python/cpython/issues/112821
5ad22a8https://github.com/python/cpython/commit/5ad22a8de606ac7459ebf7cd84e4388b8c41ffab
mdboomhttps://github.com/mdboom
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 11, 2026https://github.com/python/cpython/issues/112821#event-25390947719
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/112821
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/112821
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
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.