This is a good case for macros in Python, actually. Fraction(&#x27;0.1&#x27;) is usually what you want, so Fraction(0.1) should mean just that and if you do want the current behaviour, Fraction(float(0.1)) would do it. Same for Fraction(17&#x2F;3) for example.