summaryrefslogtreecommitdiffstats
path: root/Lib/numbers.py
diff options
context:
space:
mode:
authorGéry Ogam <gery.ogam@gmail.com>2022-05-13 14:49:36 (GMT)
committerGitHub <noreply@github.com>2022-05-13 14:49:36 (GMT)
commit7e46ae33bd522cf8331052c3c8835f9366599d8d (patch)
treeb48b200c385352ebe83ede9f27ccd7437eac0598 /Lib/numbers.py
parent3115c2c036728300a31f54a086759da229443bdb (diff)
downloadcpython-7e46ae33bd522cf8331052c3c8835f9366599d8d.zip
cpython-7e46ae33bd522cf8331052c3c8835f9366599d8d.tar.gz
cpython-7e46ae33bd522cf8331052c3c8835f9366599d8d.tar.bz2
Fix numbers.Real.__rdivmod__ doc string (#31991)
Diffstat (limited to 'Lib/numbers.py')
-rw-r--r--Lib/numbers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/numbers.py b/Lib/numbers.py
index 9548aeb..8e37d79 100644
--- a/Lib/numbers.py
+++ b/Lib/numbers.py
@@ -143,7 +143,7 @@ class Complex(Number):
@abstractmethod
def __pow__(self, exponent):
- """self**exponent; should promote to float or complex when necessary."""
+ """self ** exponent; should promote to float or complex when necessary."""
raise NotImplementedError
@abstractmethod
@@ -192,7 +192,7 @@ class Real(Complex):
"""trunc(self): Truncates self to an Integral.
Returns an Integral i such that:
- * i>0 iff self>0;
+ * i > 0 iff self > 0;
* abs(i) <= abs(self);
* for any Integral j satisfying the first two conditions,
abs(i) >= abs(j) [i.e. i has "maximal" abs among those].
@@ -228,7 +228,7 @@ class Real(Complex):
return (self // other, self % other)
def __rdivmod__(self, other):
- """divmod(other, self): The pair (self // other, self % other).
+ """divmod(other, self): The pair (other // self, other % self).
Sometimes this can be computed faster than the pair of
operations.