- Update to 1.19
* Support for Python 2.7 as well as 3.7 and earlier has been removed.
* Generally use ``.as_integer_ratio()`` in the constructor if available.
* Add a classmethod ``.from_number()`` that requires a number argument,
not a string.
* Mixed calculations with other ``Rational`` classes could return the
wrong type.
* In mixed calculations with ``complex``, the Fraction is now converted
to ``float`` instead of ``complex`` to avoid certain corner cases in
complex calculation.
* Using ``complex`` numbers in division shows better tracebacks.
* Subclass instantiations and calculations could fail in some cases.
OBS-URL: https://build.opensuse.org/request/show/1239854
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-quicktions?expand=0&rev=27
6.2 KiB
6.2 KiB