On 14/05/2021 22:34, Eric V. Smith wrote:

My understanding of the proposal is that OP is only talking about <literal-integer> / <literal-integer> becomes a Fraction. So:

x=1
x/2 # unchanged, still yields a float.

It's only literals like "1/2" that would become Fraction(1,2).

This would appear to limit the usefulness of the proposal.  If you actually wanted x/y to yield a fraction when x and y were integers, you would need an explicit syntax such as Fraction(x,y) or F(x,y) anyway.  So what's the big deal about having to write Fraction(1,2) or F(1,2) ?
Rob Cliffe
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/46U4V4PPFBDLI4357B4ZDYFZKL5JDAZB/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to