Title: C API functions with no return value cannot report errors · Issue #105184 · python/cpython · GitHub
Open Graph Title: C API functions with no return value cannot report errors · Issue #105184 · python/cpython
X Title: C API functions with no return value cannot report errors · Issue #105184 · python/cpython
Description: As discussed in capi-workgroup/problems#20, there are functions in the C API that do not have a way to report error (void return type). Some of them actually set the error indicator in some cases, and the only way to know it to check PyE...
Open Graph Description: As discussed in capi-workgroup/problems#20, there are functions in the C API that do not have a way to report error (void return type). Some of them actually set the error indicator in some cases, ...
X Description: As discussed in capi-workgroup/problems#20, there are functions in the C API that do not have a way to report error (void return type). Some of them actually set the error indicator in some cases, ...
Opengraph URL: https://github.com/python/cpython/issues/105184
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"C API functions with no return value cannot report errors","articleBody":"As discussed in https://github.com/capi-workgroup/problems/issues/20, there are functions in the C API that do not have a way to report error (void return type).\r\n\r\nSome of them actually set the error indicator in some cases, and the only way to know it to check ``PyErr_Occurred()``. In other cases the functions currently do not have error cases, but the lack of return value is still a problem in case we want to evolve them in the future and need to report errors. \r\n\r\nWe will use this issue to fix the straightforward ones, while more complicated ones may spawn their own issues.\r\n\r\n\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-105185\r\n* gh-105218\n* gh-105219\n* gh-105220\n* gh-105221\n* gh-105222\n* gh-105223\n* gh-105233\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/iritkatriel","@type":"Person","name":"iritkatriel"},"datePublished":"2023-06-01T09:35:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/105184/cpython/issues/105184"}
| 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:343feed6-1cad-2df9-ee09-037902f32854 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AED2:36A82:146802E:1C131FE:69694CD5 |
| html-safe-nonce | f6e1c046a807a28b396b60316bc94229ab2ddbff271155d40728c95618ed214b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUQyOjM2QTgyOjE0NjgwMkU6MUMxMzFGRTo2OTY5NENENSIsInZpc2l0b3JfaWQiOiIzNTE4MzU0NzUxNTc0NTkyNzI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d3194da14f61860e24fe3549afef62343ad064f38fa61011f138047acd216009 |
| hovercard-subject-tag | issue:1735886674 |
| 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/105184/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9c02601bcb1492369c2cc687074274febc50fdb9c5abecfd60d3f7f42c57ca5e/python/cpython/issues/105184 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9c02601bcb1492369c2cc687074274febc50fdb9c5abecfd60d3f7f42c57ca5e/python/cpython/issues/105184 |
| og:image:alt | As discussed in capi-workgroup/problems#20, there are functions in the C API that do not have a way to report error (void return type). Some of them actually set the error indicator in some cases, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iritkatriel |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| 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 | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width