Title: Add __get__ to the partial object · Issue #121027 · python/cpython · GitHub
Open Graph Title: Add __get__ to the partial object · Issue #121027 · python/cpython
X Title: Add __get__ to the partial object · Issue #121027 · python/cpython
Description: Feature or enhancement In #119827 (comment), @rhettinger proposed to add the __get__ method to the partial object in functools. This is a breaking change, although the impact may be much lesser than of adding __get__ to builtin functions...
Open Graph Description: Feature or enhancement In #119827 (comment), @rhettinger proposed to add the __get__ method to the partial object in functools. This is a breaking change, although the impact may be much lesser tha...
X Description: Feature or enhancement In #119827 (comment), @rhettinger proposed to add the __get__ method to the partial object in functools. This is a breaking change, although the impact may be much lesser tha...
Opengraph URL: https://github.com/python/cpython/issues/121027
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add __get__ to the partial object","articleBody":"# Feature or enhancement\n\nIn https://github.com/python/cpython/pull/119827#issuecomment-2190108757, @rhettinger proposed to add the `__get__` method to the `partial` object in `functools`. This is a breaking change, although the impact may be much lesser than of adding `__get__` to builtin functions. But we should follow the common procedure for such changes: first add `__get__` that emits FutureWarning with suggestion to wrap partial into staticmethod and return the `partial` object unchanged, then change the behavior few releases later.\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-121086\n* gh-121089\n* gh-121092\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2024-06-26T05:49:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/121027/cpython/issues/121027"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d71fcd39-e130-ba72-59d5-dbb7a0da86bf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1C6:12343F:2C59934:3A4DF6B:696B2EDA |
| html-safe-nonce | f8996f5367a9ed8dd428fc60ed47082e73fd5e8fb03c3f310017151f96209208 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUM2OjEyMzQzRjoyQzU5OTM0OjNBNERGNkI6Njk2QjJFREEiLCJ2aXNpdG9yX2lkIjoiMTAxMTA5MTgxMjEzMTc0NTQ5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ddf0e4ba48eff536a419f0ad91c6a612b33221dd0fd869161c97ec23548dae8a |
| hovercard-subject-tag | issue:2374344106 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/121027/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f5bbd54f9dd6fd0475b34ffc475b75f69c4bbf9a7e837c2373d84624a61fbab7/python/cpython/issues/121027 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f5bbd54f9dd6fd0475b34ffc475b75f69c4bbf9a7e837c2373d84624a61fbab7/python/cpython/issues/121027 |
| og:image:alt | Feature or enhancement In #119827 (comment), @rhettinger proposed to add the __get__ method to the partial object in functools. This is a breaking change, although the impact may be much lesser tha... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width