Skip to content

1.19

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 29 Nov 09:23
· 3 commits to master since this release
1.19 (2024-11-29)

-----------------

* 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.
  https://github.com/python/cpython/pull/120271

* Add a classmethod ``.from_number()`` that requires a number argument, not a string.
  https://github.com/python/cpython/pull/121800

* Mixed calculations with other ``Rational`` classes could return the wrong type.
  https://github.com/python/cpython/issues/119189

* In mixed calculations with ``complex``, the Fraction is now converted to ``float``
  instead of ``complex`` to avoid certain corner cases in complex calculation.
  https://github.com/python/cpython/pull/119839

* Using ``complex`` numbers in division shows better tracebacks.
  https://github.com/python/cpython/pull/102842

* Subclass instantiations and calculations could fail in some cases.