Message349946
> Sorry, but I do not understand why adding Fraction.as_integer_ratio() prevents adding math.as_integer_ratio().
I also support a public function for that. It seems that we're planning this "as_integer_ratio" thing to become public API, so why not have a function as Serhiy proposes?
I consider the situation with as_integer_ratio() very analogous to __index__ where we have operator.index(), so I would actually suggest operator.as_integer_ratio() but that's bikeshedding territory. |
|
Date |
User |
Action |
Args |
2019-08-19 09:17:27 | jdemeyer | set | recipients:
+ jdemeyer, gvanrossum, rhettinger, mark.dickinson, scoder, lukasz.langa, serhiy.storchaka, lisroach, CuriousLearner |
2019-08-19 09:17:27 | jdemeyer | set | messageid: <1566206247.65.0.60768024508.issue37819@roundup.psfhosted.org> |
2019-08-19 09:17:27 | jdemeyer | link | issue37819 messages |
2019-08-19 09:17:27 | jdemeyer | create | |
|