-
-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc: power operator (**
) present for numbers.Complex, not added in numbers.Integral
#88238
Comments
Checked at commit 42fcad2, HEAD of main circa 8 May 2021. cpython/Doc/library/numbers.rst says numbers.Complex subtypes "include the operations [...] ``+``, ``-``, ``*``, ``/``, :func:`abs`, :meth:`conjugate`, ``==``, and ``!=``" and for numbers.Integral: "Adds abstract methods for However, in cpython/Lib/numbers.py, the class Complex has class.Integral does define a three-argument __pow__ for three-argument pow(). |
Yes, complex ** complex works fine, and "TypeError: pow() 3rd argument not allowed unless all arguments are integers". |
Thanks for the report and clean patch. |
**
#25986**
(GH-25986) #26139**
(GH-25986) #26140Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: