Title: Rework Argument Clinic error handling · Issue #107468 · python/cpython · GitHub
Open Graph Title: Rework Argument Clinic error handling · Issue #107468 · python/cpython
X Title: Rework Argument Clinic error handling · Issue #107468 · python/cpython
Description: Suggesting to...: Introduce ClinicError and ClinicWarning Rework fail to raise a ClinicError, and warn to use warnings.warn(..., ClinicWarning) This will simplify the test suite (we can use assertRaisesRegex instead of the current captur...
Open Graph Description: Suggesting to...: Introduce ClinicError and ClinicWarning Rework fail to raise a ClinicError, and warn to use warnings.warn(..., ClinicWarning) This will simplify the test suite (we can use assertR...
X Description: Suggesting to...: Introduce ClinicError and ClinicWarning Rework fail to raise a ClinicError, and warn to use warnings.warn(..., ClinicWarning) This will simplify the test suite (we can use assertR...
Opengraph URL: https://github.com/python/cpython/issues/107468
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rework Argument Clinic error handling","articleBody":"Suggesting to...:\r\n\r\n- [ ] Introduce ClinicError and ClinicWarning\r\n- [ ] Rework `fail` to raise a ClinicError, and `warn` to use `warnings.warn(..., ClinicWarning)`\r\n\r\nThis will simplify the test suite (we can use `assertRaisesRegex` instead of the current capture stdout hacks). Proof-of-concept implementation: https://github.com/Argument-Clinic/cpython/pull/2","author":{"url":"https://github.com/erlend-aasland","@type":"Person","name":"erlend-aasland"},"datePublished":"2023-07-30T20:12:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/107468/cpython/issues/107468"}
| 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:a4eb23a8-6a2e-f882-914c-b615b73d5614 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4C6:2A7108:6E28D7:98D135:696A29A0 |
| html-safe-nonce | 6fd06f0dff6d5f7cc8d7856cd8b801dbe2c037a50246be94871ff1b1b0972c4f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEM2OjJBNzEwODo2RTI4RDc6OThEMTM1OjY5NkEyOUEwIiwidmlzaXRvcl9pZCI6Ijg2NzI0Nzg1NjA5MTMwNzQ1OTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8014b144e3fcb3dfd329dd8d4682ca5431eb39cac34788af4de4838715bff2a4 |
| hovercard-subject-tag | issue:1828067962 |
| 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/107468/issue_layout |
| twitter:image | https://opengraph.githubassets.com/461de49d680f46fd2d006537548f9f4e35b1b214e7e4e25f85efde87764b566e/python/cpython/issues/107468 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/461de49d680f46fd2d006537548f9f4e35b1b214e7e4e25f85efde87764b566e/python/cpython/issues/107468 |
| og:image:alt | Suggesting to...: Introduce ClinicError and ClinicWarning Rework fail to raise a ClinicError, and warn to use warnings.warn(..., ClinicWarning) This will simplify the test suite (we can use assertR... |
| 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 | a1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569 |
| 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 | f472b8e6c7b3fdd5d0354972a3f4c516289bf0be |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width