Gmpy

Latest version: v1.17

Safety actively analyzes 681775 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2.1.0a1

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

* Thread-safe contexts are now supported. Properly integrating thread-safe
contexts required an extensive rewrite of almost all internal functions.
* MPFR and MPC are now required. It is no longer possible to build a version
of gmpy2 that only supports the GMP library.
* The function inverse() now raises an exception if the inverse does not
exist.
* Context methods have been added for MPFR/MPC related functions.
* A new context option has been added that changes the behavior of integer
division involving an *mpz* instance to return a rational result.
* A new context option has been added that temporarily increases precision
when converting non-mpfr (non-mpc) arguments to MPFR (MPC) functions.
Note: this option is experimental and may be removed in the future.
*

2.0.4

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

* Fix bit_scan0() for negative values.
* Changes to setup.py to allow static linking.
* Fix performance regression with mpmath and Python 3.

2.0.3

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

* Fix lucas2() and atanh(); they were returning incorrect values.

2.0.2

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

* Rebuild Windows binary installers due to MPIR 2.6.0 bug in next_prime().
* Another fix for is_extra_strong_lucas_prp().

2.0.1

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

* Updated setup.py to work in more situations.
* Corrected exception handling in basic operations with mpfr type.
* Correct InvalidOperation exception not raised in certain circumstances.
* invert() now raises an exception if the modular inverse does not exist.
* Fixed internal exception in is_bpsw_prp() and is_strong_bpsw_prp().
* Updated is_extra_strong_lucas_prp() to latest version.

2.0.0

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

* The test suite is still incomplete.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.