Title: Improve `complex` C-API error descriptions · Issue #121834 · python/cpython · GitHub
Open Graph Title: Improve `complex` C-API error descriptions · Issue #121834 · python/cpython
X Title: Improve `complex` C-API error descriptions · Issue #121834 · python/cpython
Description: There several things to improve: Some functions do not have an error description at all: cpython/Doc/c-api/complex.rst Lines 106 to 115 in 7e91e0d .. c:function:: PyObject* PyComplex_FromCComplex(Py_complex v) Create a new Python complex...
Open Graph Description: There several things to improve: Some functions do not have an error description at all: cpython/Doc/c-api/complex.rst Lines 106 to 115 in 7e91e0d .. c:function:: PyObject* PyComplex_FromCComplex(P...
X Description: There several things to improve: Some functions do not have an error description at all: cpython/Doc/c-api/complex.rst Lines 106 to 115 in 7e91e0d .. c:function:: PyObject* PyComplex_FromCComplex(P...
Opengraph URL: https://github.com/python/cpython/issues/121834
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve `complex` C-API error descriptions","articleBody":"There several things to improve:\r\n\r\n- Some functions do not have an error description at all: https://github.com/python/cpython/blob/7e91e0dcfe2faab1e1a4630e6f745aa30ca87b3d/Doc/c-api/complex.rst?plain=1#L106-L115 So, we should add that these functions can fail.\r\n- Some functions mention the error case, but do not mention that exception is set: https://github.com/python/cpython/blob/7e91e0dcfe2faab1e1a4630e6f745aa30ca87b3d/Doc/c-api/complex.rst?plain=1#L152-L153\r\n\r\nPlus, I would unify the wording in some other functions.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-121835\n* gh-121895\n* gh-121897\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2024-07-16T07:01:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/121834/cpython/issues/121834"}
| 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:d2ece2b7-cb3e-814e-84ac-23be0663c514 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8364:D7362:217A148:2C53983:696B15DC |
| html-safe-nonce | 7161bd6d611633f7dd373be8100ea2c5380393c875981b45ebcf301aed9eefe3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzY0OkQ3MzYyOjIxN0ExNDg6MkM1Mzk4Mzo2OTZCMTVEQyIsInZpc2l0b3JfaWQiOiIyNTg3MDAzNjIxODU2NzEyMTU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fb757fee08d0f60f888850aa1255f29ec14ee779b6cb829a5b2792450ebe7f9e |
| hovercard-subject-tag | issue:2410374994 |
| 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/121834/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1038a3e4356b531a512ba239bacb4dfa3ba4299e772fc193eb0b05758dbb155a/python/cpython/issues/121834 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1038a3e4356b531a512ba239bacb4dfa3ba4299e772fc193eb0b05758dbb155a/python/cpython/issues/121834 |
| og:image:alt | There several things to improve: Some functions do not have an error description at all: cpython/Doc/c-api/complex.rst Lines 106 to 115 in 7e91e0d .. c:function:: PyObject* PyComplex_FromCComplex(P... |
| 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 | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width