Title: Support getters and setters in Argument Clinic · Issue #112205 · python/cpython · GitHub
Open Graph Title: Support getters and setters in Argument Clinic · Issue #112205 · python/cpython
X Title: Support getters and setters in Argument Clinic · Issue #112205 · python/cpython
Description: Feature or enhancement In the C API, getters and setters are implemented using PyGetSetDef. Argument Clinic doesn't currently support writing getters and setters, probably because they are pretty straightforward to write manually -- ther...
Open Graph Description: Feature or enhancement In the C API, getters and setters are implemented using PyGetSetDef. Argument Clinic doesn't currently support writing getters and setters, probably because they are pretty s...
X Description: Feature or enhancement In the C API, getters and setters are implemented using PyGetSetDef. Argument Clinic doesn't currently support writing getters and setters, probably because they are pret...
Opengraph URL: https://github.com/python/cpython/issues/112205
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support getters and setters in Argument Clinic","articleBody":"# Feature or enhancement\n\nIn the C API, getters and setters are implemented using `PyGetSetDef`. Argument Clinic doesn't currently support writing getters and setters, probably because they are pretty straightforward to write manually -- there's not much argument parsing to be done. \n\nArgument Clinic now supports the `@critical_section` directive, which avoids a bunch of boilerplate code when making things thread-safe with the `--disable-gil` builds. It would be helpful if Argument Clinic supported getters/setters so that we could avoid the critical section boilerplate in getters and setters as well.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-112396\n* gh-112549\n* gh-112922\n* gh-113095\n* gh-113160\n* gh-113278\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2023-11-17T16:12:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/112205/cpython/issues/112205"}
| 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:ba6e457f-5ab7-92b8-f5c3-8b79de6dcfdb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A5E4:13A5D2:B3C914:EE0831:696B83DA |
| html-safe-nonce | 486e11c61630d188f110d7403837836a7cb063c9f82a851c508777f7250e2258 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUU0OjEzQTVEMjpCM0M5MTQ6RUUwODMxOjY5NkI4M0RBIiwidmlzaXRvcl9pZCI6Ijg2NzMxMzg3MTg4NjEzOTQ5MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 17f3720560a1b6dbc8244774d584161683f37239ea9ad76c265dceaf0550f39c |
| hovercard-subject-tag | issue:1999468383 |
| 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/112205/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a39ed4f804b101cf9c595eb570a106d8a24de9114ac345769d45d6e0288d13e6/python/cpython/issues/112205 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a39ed4f804b101cf9c595eb570a106d8a24de9114ac345769d45d6e0288d13e6/python/cpython/issues/112205 |
| og:image:alt | Feature or enhancement In the C API, getters and setters are implemented using PyGetSetDef. Argument Clinic doesn't currently support writing getters and setters, probably because they are pretty s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colesbury |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width