Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35.2k
gh-101825: mention, that as_integer_ratio() output is normalized#101843
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
d3de603dc76383771db8719738a70aeb33af04dc7b7892a40c7dcff6fdb47d231a94d0a2a84aeFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -6020,10 +6020,9 @@ int_bit_count_impl(PyObject *self) | ||
| /*[clinic input] | ||
| int.as_integer_ratio | ||
| Return integer ratio. | ||
| Return a pair of integers, whose ratio is equal to the original int. | ||
| Return a pair of integers, whose ratio is exactly equal to the original int | ||
| and with a positive denominator. | ||
| The ratio is in lowest terms and has a positive denominator. | ||
| >>> (10).as_integer_ratio() | ||
skirpichev marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| (10, 1) | ||
| @@ -6035,7 +6034,7 @@ and with a positive denominator. | ||
| static PyObject * | ||
| int_as_integer_ratio_impl(PyObject *self) | ||
| /*[clinic end generated code: output=e60803ae1cc8621a input=55ce3058e15de393]*/ | ||
| /*[clinic end generated code: output=e60803ae1cc8621a input=384ff1766634bec2]*/ | ||
| { | ||
| PyObject *ratio_tuple; | ||
| PyObject *numerator = long_long(self); | ||
Uh oh!
There was an error while loading. Please reload this page.