Skip to content

Commit 7e46ae3

Browse files
authored
Fix numbers.Real.__rdivmod__ doc string (#31991)
1 parent 3115c2c commit 7e46ae3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/numbers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def __rtruediv__(self, other):
143143

144144
@abstractmethod
145145
def __pow__(self, exponent):
146-
"""self**exponent; should promote to float or complex when necessary."""
146+
"""self ** exponent; should promote to float or complex when necessary."""
147147
raise NotImplementedError
148148

149149
@abstractmethod
@@ -192,7 +192,7 @@ def __trunc__(self):
192192
"""trunc(self): Truncates self to an Integral.
193193
194194
Returns an Integral i such that:
195-
* i>0 iff self>0;
195+
* i > 0 iff self > 0;
196196
* abs(i) <= abs(self);
197197
* for any Integral j satisfying the first two conditions,
198198
abs(i) >= abs(j) [i.e. i has "maximal" abs among those].
@@ -228,7 +228,7 @@ def __divmod__(self, other):
228228
return (self // other, self % other)
229229

230230
def __rdivmod__(self, other):
231-
"""divmod(other, self): The pair (self // other, self % other).
231+
"""divmod(other, self): The pair (other // self, other % self).
232232
233233
Sometimes this can be computed faster than the pair of
234234
operations.

0 commit comments

Comments
 (0)