mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-44072: fix Complex, Integral docs for **
(GH-25986)
In numbers module docstrings and docs.
(cherry picked from commit 4aa63d65a9
)
Co-authored-by: Rory Yorke <rory.yorke@gmail.com>
This commit is contained in:
parent
dd4f7d96cb
commit
2e99869f64
3 changed files with 13 additions and 6 deletions
|
@ -33,7 +33,7 @@ class Complex(Number):
|
|||
"""Complex defines the operations that work on the builtin complex type.
|
||||
|
||||
In short, those are: a conversion to complex, .real, .imag, +, -,
|
||||
*, /, abs(), .conjugate, ==, and !=.
|
||||
*, /, **, abs(), .conjugate, ==, and !=.
|
||||
|
||||
If it is given heterogeneous arguments, and doesn't have special
|
||||
knowledge about them, it should fall back to the builtin complex
|
||||
|
@ -292,7 +292,11 @@ class Rational(Real):
|
|||
|
||||
|
||||
class Integral(Rational):
|
||||
"""Integral adds a conversion to int and the bit-string operations."""
|
||||
"""Integral adds methods that work on integral numbers.
|
||||
|
||||
In short, these are conversion to int, pow with modulus, and the
|
||||
bit-string operations.
|
||||
"""
|
||||
|
||||
__slots__ = ()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue