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 Sergey.Kirpichev
Recipients Sergey.Kirpichev, lemburg, mark.dickinson, rhettinger, serhiy.storchaka, stutzbach, terry.reedy
Date 2022-03-26.06:10:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648275009.19.0.108008095243.issue47079@roundup.psfhosted.org>
In-reply-to
Content
> How would it work for bool or IntEnum?

Neither subclass the Integral abc.

The constraint (for which I care about) is: numerator/denominator should have same types.  The default implementation, which I propose: it's the same type as the given Integral implementation.
History
Date User Action Args
2022-03-26 06:10:09Sergey.Kirpichevsetrecipients: + Sergey.Kirpichev, lemburg, rhettinger, terry.reedy, mark.dickinson, stutzbach, serhiy.storchaka
2022-03-26 06:10:09Sergey.Kirpichevsetmessageid: <1648275009.19.0.108008095243.issue47079@roundup.psfhosted.org>
2022-03-26 06:10:09Sergey.Kirpichevlinkissue47079 messages
2022-03-26 06:10:09Sergey.Kirpichevcreate