gh-112019: Add Py_complex_abs() function by vstinner · Pull Request #112107 · python/cpython
Conversation
Add functions operating on Py_complex numbers: * Py_complex_sum() * Py_complex_diff() * Py_complex_neg() * Py_complex_prod() * Py_complex_quot() * Py_complex_pow() * Py_complex_abs() Add basic tests on these functions in test_capi.
Only the numba is known to call _Py_c_pow(). Apparently, _Py_c functions are not used in the wild apart of the numba case. For now, I mark this PR as a draft.
I'm no longer convinced that we should make these APIs public. See #112019 discussion. I close this PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters