Title: Migrate `zoneinfo` to argument clinic · Issue #97955 · python/cpython · GitHub
Open Graph Title: Migrate `zoneinfo` to argument clinic · Issue #97955 · python/cpython
X Title: Migrate `zoneinfo` to argument clinic · Issue #97955 · python/cpython
Description: Feature or enhancement Migrate _zoneinfo.c to argument clinic. It is proposed by @vstinner and @pganssle Link: #19909 (comment) Pitch This will improve several things: help() on ZoneInfo methods. Here's how it looks now: >>> help(zoneinf...
Open Graph Description: Feature or enhancement Migrate _zoneinfo.c to argument clinic. It is proposed by @vstinner and @pganssle Link: #19909 (comment) Pitch This will improve several things: help() on ZoneInfo methods. H...
X Description: Feature or enhancement Migrate _zoneinfo.c to argument clinic. It is proposed by @vstinner and @pganssle Link: #19909 (comment) Pitch This will improve several things: help() on ZoneInfo methods. H...
Opengraph URL: https://github.com/python/cpython/issues/97955
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Migrate `zoneinfo` to argument clinic","articleBody":"# Feature or enhancement\r\n\r\nMigrate `_zoneinfo.c` to argument clinic.\r\n\r\nIt is proposed by @vstinner and @pganssle \r\nLink: https://github.com/python/cpython/pull/19909#discussion_r425272501\r\n\r\n# Pitch\r\n\r\nThis will improve several things:\r\n1. `help()` on `ZoneInfo` methods. Here's how it looks now:\r\n\r\n```\r\n\u003e\u003e\u003e help(zoneinfo.ZoneInfo.clear_cache)\r\nHelp on built-in function clear_cache:\r\n\r\nclear_cache(...) method of builtins.type instance\r\n Clear the ZoneInfo cache.\r\n```\r\n\r\n2. Add `__text_signature__` property to methods, it is very useful: for example, `python/typeshed` uses it to be sure that stubs and implementation match\r\n3. Move all argument parsing to clinic, which is more convenient\r\n\r\n# Previous discussion\r\n\r\n1. https://github.com/python/cpython/issues/84683\r\n2. https://github.com/python/cpython/pull/19909\r\n3. https://github.com/python/cpython/pull/19909#discussion_r425272501\r\n\r\nI will send a PR for this today :)","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2022-10-06T10:01:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/97955/cpython/issues/97955"}
| 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:d8d7a7eb-bb5f-baa3-790a-389f22d50ff4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5B0:361CC5:F2BD3B:1499B93:6969F2A2 |
| html-safe-nonce | 3a2b80fec642a973956f4a912f52e25aab42ec8c6ba53753f814607502eb3396 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUIwOjM2MUNDNTpGMkJEM0I6MTQ5OUI5Mzo2OTY5RjJBMiIsInZpc2l0b3JfaWQiOiI0NTA5OTI3NzczODIzNDMxMzMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 956777aa50086c688466a40119f7e5a64c46abe4e77070ae77d65d2678fef43d |
| hovercard-subject-tag | issue:1399263149 |
| 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/97955/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ef3839f55bab6ab23d3a2abf6a76a1ea2b743ee1a099c01cd57b1ea3aa2f1bb1/python/cpython/issues/97955 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ef3839f55bab6ab23d3a2abf6a76a1ea2b743ee1a099c01cd57b1ea3aa2f1bb1/python/cpython/issues/97955 |
| og:image:alt | Feature or enhancement Migrate _zoneinfo.c to argument clinic. It is proposed by @vstinner and @pganssle Link: #19909 (comment) Pitch This will improve several things: help() on ZoneInfo methods. H... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width