Python-gmp

Latest version: v0.3.1

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

Scan your dependencies

Page 1 of 8

2.2.1

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

* Fix internal use of char when int should be used. (jamesjer)
* Add :meth:`xmpz.bit_count`. (skirpichev)

2.2.0

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

* Remove support for versions of Python < 3.7. (skirpichev)
* Support more modern build tools. (skirpichev)
* Use contextvars to manage gmpy2 contexts. (casevh)
* _mpmath functions now use vectorcall protocol. (casevh)
* Many documentation updates. (skirpichev)
* Add :meth:`mpz.as_integer_ratio()` / :meth:`mpz.to_bytes()` and
:meth:`mpz.from_bytes()`. (skirpichev)
* Add :func:`is_probab_prime()` to directly expose the GMP
behavior. (skirpichev)
* :func:`gcd()`/:func:`lcm()` now uses vectorcall protocol. (skirpichev)
* Expose :class:`context` type. (skirpichev)
* Correct error in :func:`is_strong_bpsw_prp()`. (casevh)
* Added :func:`prev_prime()` when GMP >= 6.3. (sethtroisi)
* Change argument order of :func:`jn()` and :func:`yn()` to match
MPFR. (casevh)
* Fix documentation and code for
:func:`is_extra_strong_lucas_prp()`. (casevh)

2.1.5

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

* Version bump to fix wheel issues. No code changes.

2.1.4

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

* Version bump to fix wheel issues. No code changes.

2.1.3

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

* Fix mpz(-3).is_prime().
* Add powmod_sec().
* Fix mpfr('inf') and mpfr('nan') if subnormalization is enabled.
* powmod() and powmod_sec() release the GIL.
* Fix error messages for iroot(x,n) for large n.
* Add powmod_base_list() and powmod_exp_list() (experimental).
* Fix gmpy2.mpq(mpq, int).
* Fix issues with INF, NAN, and mpfr("-0") when subnormalization is True

2.1.2

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

* Code cleanup.
* Support Apple Silicon binary wheels.
* is_prime(-2) now returns False. Issue 312.

Page 1 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.