Several tweaks: add construction from strings and .from_decimal(), change
__init__ to __new__ to enforce immutability, and remove "rational." from repr and the parens from str.
Showing
Please register or sign in to comment
__init__ to __new__ to enforce immutability, and remove "rational." from repr and the parens from str.