I actually think the biggest argument against this idea is exactly the same as why it’s not a major breaking change:
Python assumes, and converts to, floats all over the place. So users need to understand and accommodate the limitations of floats anyway. Having exact fractions in seemingly arbitrary places will not result in more accurate (or precise) results in most cases, but would result in more confusion and more difficult error analysis. -CHB On Mon, May 17, 2021 at 12:56 AM Shreyan Avigyan <[email protected]> wrote: > Chris: > > But none of the rest of your statement is an argument against Fraction > literals. > > If we have fractions.Fraction then we must have decimal.Decimal. We always > don't judge by accuracy. There are other factors in motion that are to be > considered. > _______________________________________________ > Python-ideas mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/[email protected]/message/Y272MZQRK6GQVB2I62XOBB6FXIS3SOXJ/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Christopher Barker, PhD (Chris) Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/UCAE7D2TIBDWVLVRQDD2NL27HQO3L4Y3/ Code of Conduct: http://python.org/psf/codeofconduct/
