On 4/1/19 10:27 AM, Antoine Pietri wrote:
- The / operator returns floats, which loses information when both of the operands are integer. In Python 4, “1 / 2” should return a decimal.Decimal. To ease the transition, we propose to add a new “from __future__ import decimal_division” in Python 3.9 to enable this behavior.
“1 / 2” should be a syntax error. "1 / 2" should return a string. 1 / 2 should return a fractions.Fraction. _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/