Title: Convert more datetime constructors and methods to Argument Clinic · Issue #136571 · python/cpython · GitHub
Open Graph Title: Convert more datetime constructors and methods to Argument Clinic · Issue #136571 · python/cpython
X Title: Convert more datetime constructors and methods to Argument Clinic · Issue #136571 · python/cpython
Description: The datetime module was partially converted to Argument Clinic. The following PR converts more functions. This adds signatures for some classes and methods. As a side effect, this may improve performance. Usually we avoid behavior change...
Open Graph Description: The datetime module was partially converted to Argument Clinic. The following PR converts more functions. This adds signatures for some classes and methods. As a side effect, this may improve perfo...
X Description: The datetime module was partially converted to Argument Clinic. The following PR converts more functions. This adds signatures for some classes and methods. As a side effect, this may improve perfo...
Opengraph URL: https://github.com/python/cpython/issues/136571
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Convert more datetime constructors and methods to Argument Clinic","articleBody":"The `datetime` module was partially converted to Argument Clinic. The following PR converts more functions. This adds signatures for some classes and methods. As a side effect, this may improve performance.\n\nUsually we avoid behavior changes in conversions to Argument Clinic, but there is one such change in the following PR. Currently, `fromisocalendar()` always raises ValueError for out of range arguments. After conversion, it will raise OverflowError for values that can't fit in the C int. This is a regression. But all other methods that take integer arguments raise OverflowError. It is better to raise ValueError, but this should be consistent for all methods.\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-136573\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2025-07-12T11:10:46Z","url":"https://github.com/python/cpython/issues/136571"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:f7d6a993-84c9-dc9e-d4c1-713d1b200f6c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6DA:5537E:18D8E47:20C9289:6B001E2A |
| html-safe-nonce | 4051901372eb7761bf29eee1c046049d1626fcfd4bd4ff47bb6d2d9934cd7565 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkRBOjU1MzdFOjE4RDhFNDc6MjBDOTI4OTo2QjAwMUUyQSIsInZpc2l0b3JfaWQiOiIzODM5MzgyNzk1MTA1MzQ1MDY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f1d8904dabf9d553558bf99af4e1fe0731fc77a7780f974c96bd79afc6150491 |
| hovercard-subject-tag | issue:3225212527 |
| 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/136571/issue_layout |
| twitter:image | https://opengraph.githubassets.com/825995a8ff09630aeed6e997c157a7a61993eccbd4d5c269f763a975d4e9f572/python/cpython/issues/136571 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/825995a8ff09630aeed6e997c157a7a61993eccbd4d5c269f763a975d4e9f572/python/cpython/issues/136571 |
| og:image:alt | The datetime module was partially converted to Argument Clinic. The following PR converts more functions. This adds signatures for some classes and methods. As a side effect, this may improve perfo... |
| 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 | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width