Skip to content
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

Fix numbers.Real.__rdivmod__ doc string #31991

Merged
merged 1 commit into from
May 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Lib/numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def __rtruediv__(self, other):

@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
Expand Down Expand Up @@ -167,7 +167,7 @@ def __trunc__(self):
"""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].
Expand Down Expand Up @@ -203,7 +203,7 @@ def __divmod__(self, other):
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.
Expand Down