Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 531 Bytes

README.rst

File metadata and controls

17 lines (12 loc) · 531 Bytes

Python-GMP

Python extension module providing safe bindings to the GNU GMP. This module shouldn't crash the interpreter!

Can be used as a gmpy2/python-flint replacement to provide CPython-compatible integer and rational types:

  • mpz — like builtin int type
  • mpq — like stdlib's Fraction type (not ready yet)

Module includes also few functions:

  • gcd — greatest common division, just like math.gcd
  • isqrt — integer square root, just like math.isqrt
  • factorial — just like math.factorial (not ready yet)