This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jdemeyer
Recipients jdemeyer, mark.dickinson, rhettinger, serhiy.storchaka, stutzbach
Date 2019-08-12.08:33:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565598811.41.0.523776564123.issue37822@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-08-12 08:33:31jdemeyersetrecipients: + jdemeyer, rhettinger, mark.dickinson, stutzbach, serhiy.storchaka
2019-08-12 08:33:31jdemeyersetmessageid: <1565598811.41.0.523776564123.issue37822@roundup.psfhosted.org>
2019-08-12 08:33:31jdemeyerlinkissue37822 messages
2019-08-12 08:33:31jdemeyercreate