Message349447
Aren't you worried about using the non-special non-reserved attributes like "as_integer_ratio"? That's the reason why I proposed a dunder name "__ratio__" instead of "as_integer_ratio".
In my opinion, it was a mistake in PEP 3141 to use non-reserved names like "numerator" and "denominator" because they might already be used by existing classes with a different meaning (this is precisely what happened with SageMath).
It's an honest question. If you say, "we thought about it and think it's just fine to use as_integer_ratio()", just say so and that's fine for me. |
|
Date |
User |
Action |
Args |
2019-08-12 08:33:31 | jdemeyer | set | recipients:
+ jdemeyer, rhettinger, mark.dickinson, stutzbach, serhiy.storchaka |
2019-08-12 08:33:31 | jdemeyer | set | messageid: <1565598811.41.0.523776564123.issue37822@roundup.psfhosted.org> |
2019-08-12 08:33:31 | jdemeyer | link | issue37822 messages |
2019-08-12 08:33:31 | jdemeyer | create | |
|