17
0

Accepting request 1239854 from home:glaubitz:branches:devel:languages:python

- 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
This commit is contained in:
2025-01-23 12:57:53 +00:00
committed by Git OBS Bridge
parent 745cd6ee35
commit 7ef4a00957
4 changed files with 21 additions and 5 deletions

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Thu Jan 23 11:53:37 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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.
-------------------------------------------------------------------
Mon Jun 10 09:45:47 UTC 2024 - Dirk Müller <dmueller@suse.com>