Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x

Project Description

gmpy2 is a C-coded Python extension module that supports multiple-precision arithmetic. In addition to supporting GMP or MPIR for multiple-precision integer and rational arithmetic, gmpy2 adds support for the MPFR (correctly rounded real floating-point arithmetic) and MPC (correctly rounded complex floating-point arithmetic) libraries.

Release 2.0.8 has the following fixes:

  1. Fix reference counting bug in left shift and right shift.
  2. Fix crash when converting string to mpfr and subnormalization is active.
  3. Fix int(mpfr) for negative values.
  4. Fix data corruption bug when using pack() on a list that contains instances of the mpz type.

Release 2.0.7 has the following fixes:

  1. math.floor(gmpy2.mpfr(‘inf’)) no longer segfaults.
  2. The “wheel” format is used for the Windows binaries.

Release 2.0.6 has the following fixes:

  1. setup.py no longer changes the meaning of –prefix.
  2. Using the ‘X’ format code now works properly (convert to hex using upper-case letters).
Release History

Release History

This version
History Node

2.0.8

History Node

2.0.7

History Node

2.0.6

History Node

2.0.5

History Node

2.0.4

History Node

2.0.3

History Node

2.0.2

History Node

2.0.1

History Node

2.0.0

History Node

2.0.0b4

History Node

2.0.0b3

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
gmpy2-2.0.8-cp26-none-win32.whl (364.3 kB) Copy SHA256 Checksum SHA256 2.6 Wheel Jun 26, 2016
gmpy2-2.0.8-cp26-none-win_amd64.whl (451.3 kB) Copy SHA256 Checksum SHA256 2.6 Wheel Jun 26, 2016
gmpy2-2.0.8-cp27-none-win32.whl (363.7 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Jun 26, 2016
gmpy2-2.0.8-cp32-none-win_amd64.whl (447.2 kB) Copy SHA256 Checksum SHA256 3.2 Wheel Jun 26, 2016
gmpy2-2.0.8-cp33-none-win32.whl (362.5 kB) Copy SHA256 Checksum SHA256 3.3 Wheel Jun 26, 2016
gmpy2-2.0.8-cp33-none-win_amd64.whl (444.4 kB) Copy SHA256 Checksum SHA256 3.3 Wheel Jun 26, 2016
gmpy2-2.0.8-cp34-none-win32.whl (362.2 kB) Copy SHA256 Checksum SHA256 3.4 Wheel Jun 26, 2016
gmpy2-2.0.8-cp34-none-win_amd64.whl (444.2 kB) Copy SHA256 Checksum SHA256 3.4 Wheel Jun 26, 2016
gmpy2-2.0.8.win-amd64-py2.7.exe (673.0 kB) Copy SHA256 Checksum SHA256 2.7 Windows Installer Jun 26, 2016
gmpy2-2.0.8.zip (280.6 kB) Copy SHA256 Checksum SHA256 Source Jun 26, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting