There several things to improve: - 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. - 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 Plus, I would unify the wording in some other functions. <!-- gh-linked-prs --> ### Linked PRs * gh-121835 * gh-121895 * gh-121897 <!-- /gh-linked-prs -->
Activity
pythongh-121834: Improve `complex` C-API docs
gh-121834: Improve `complex` C-API docs (#121835)
pythongh-121834: Improve `complex` C-API docs (pythonGH-121835)
[3.12] pythongh-121834: Improve `complex` C-API docs (pythonGH-121835)
[3.13] gh-121834: Improve `complex` C-API docs (GH-121835) (#121895)
[3.12] gh-121834: Improve `complex` C-API docs (GH-121835) (#121897)