| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
I think it would be good to define more precisely what are the output types. We require the output of as_integer_ratio to be two integers, but what does "integer" mean in this context? A Python int? An object which implements __index__? An instance of numbers.Integral? My personal vote would be to require __index__ (I don't mean that we should check that condition, but we should document it). |
Sorry, something went wrong.
There was a problem hiding this comment.
One small issue I noticed:
Sorry, something went wrong.
| math.as_integer_ratio | ||
| x: object | ||
| / | ||
| greatest common divisor of x and y |
There was a problem hiding this comment.
This looks like a copy-paste error. Maybe:
| greatest common divisor of x and y | |
| Return the rational representation of x as the pair (numerator, denominator). |
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you. But this proposition was rejected.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
https://bugs.python.org/issue37822