Title: Argument Clinic: add support for deprecating keyword use of parameters · Issue #107704 · python/cpython · GitHub
Open Graph Title: Argument Clinic: add support for deprecating keyword use of parameters · Issue #107704 · python/cpython
X Title: Argument Clinic: add support for deprecating keyword use of parameters · Issue #107704 · python/cpython
Description: See #95065 (comment) by Serhiy. Quoting: Turn positional-or-keyword parameters into positional-only parameters. A directive which means "the preceding positional-or-keyword parameters will be positional-only parameters in future". In #95...
Open Graph Description: See #95065 (comment) by Serhiy. Quoting: Turn positional-or-keyword parameters into positional-only parameters. A directive which means "the preceding positional-or-keyword parameters will be posit...
X Description: See #95065 (comment) by Serhiy. Quoting: Turn positional-or-keyword parameters into positional-only parameters. A directive which means "the preceding positional-or-keyword parameters will be ...
Opengraph URL: https://github.com/python/cpython/issues/107704
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Argument Clinic: add support for deprecating keyword use of parameters","articleBody":"See https://github.com/python/cpython/issues/95065#issuecomment-1193187512 by Serhiy. Quoting:\r\n\r\n\u003e Turn positional-or-keyword parameters into positional-only parameters. A directive which means \"the preceding positional-or-keyword parameters will be positional-only parameters in future\".\r\n\r\nIn #95151, Argument Clinic learned how to deprecate positional use of parameters. In this issue, we propose to teach Argument Clinic how to deprecate keyword use of parameters.\r\n\r\nSuggesting to use a similar syntax as the one introduced in #95151 \r\n\r\n```\r\nfunc\r\n a: object\r\n / [from X.Y]\r\n```\r\n\r\nMeaning `a` will be positional-only from Python version X.Y. We can reuse parts of the code introduced in #95151 to implement this feature.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-107984\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/erlend-aasland","@type":"Person","name":"erlend-aasland"},"datePublished":"2023-08-07T08:14:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/107704/cpython/issues/107704"}
| 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:b0c681de-eaf5-022e-b730-603da1ba3b16 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6A8:F5661:35B505:49EFD4:696A73FF |
| html-safe-nonce | 78ad463a1697b50062b2fb035855726f07c0e08832f1996d211572701942613a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkE4OkY1NjYxOjM1QjUwNTo0OUVGRDQ6Njk2QTczRkYiLCJ2aXNpdG9yX2lkIjoiMTAzNDAxMTg0MDY4MjI5MjIyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e7ee503325d27b6799a026df467af2df5e362e00b959050f5aac9a71a9cf81a6 |
| hovercard-subject-tag | issue:1838929871 |
| 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/107704/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4e7abc4b602d5d5f90d28df1aeb266ce81f5edd8d44cf0cf21514ddefb2def4b/python/cpython/issues/107704 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4e7abc4b602d5d5f90d28df1aeb266ce81f5edd8d44cf0cf21514ddefb2def4b/python/cpython/issues/107704 |
| og:image:alt | See #95065 (comment) by Serhiy. Quoting: Turn positional-or-keyword parameters into positional-only parameters. A directive which means "the preceding positional-or-keyword parameters will be posit... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | erlend-aasland |
| hostname | github.com |
| expected-hostname | github.com |
| None | cfa223d62d272274e0b68350b4bd7741f3ca7498b8c4b8b1bc1e6deabbdbc09d |
| 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 | 6a0b6893c221f98f607598e939299fdf5763435d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width