Message393507
Currently, fraction.Fractions can be generated from floats via their as_integer_ratio method. This had been extended to also work with the Decimals class. It would be more generic - and IMHO more Pythonic - to just allow any data type, as long as it has an as_integer_ratio method.
As an example, this allows numpy floats to be converted into fractions. |
|
Date |
User |
Action |
Args |
2021-05-12 13:09:37 | Martin.Teichmann | set | recipients:
+ Martin.Teichmann |
2021-05-12 13:09:37 | Martin.Teichmann | set | messageid: <1620824977.65.0.255343602515.issue44115@roundup.psfhosted.org> |
2021-05-12 13:09:37 | Martin.Teichmann | link | issue44115 messages |
2021-05-12 13:09:37 | Martin.Teichmann | create | |
|