My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links

A C-coded Python extension module that wraps the GMP library to provide to Python code fast multiprecision arithmetic (integer, rational, and float), random number generation, advanced number-theoretical functions, and more.

News

January 12, 2012

GMPY 1.15 is a bug fix release. The following bugs were fixed:

  1. Reference counting leak in divmod(x,0).
  2. Fatal crash in remove(x,1).
  3. Discontinue use of custom memory allocator. (Fixes compatibility with Sage.)
  4. Allow up to base-62 integer conversion.

June, 2011

The second alpha release of the gmpy2 development branch was released on June 8, 2011. The primary changes in the new version revolve around context manager support and control over the creation of exceptions for exception conditions. For example, you can now generate an expection when comparing "nan":

>>> import gmpy2
>>> gmpy2.context().trap_erange=True
>>> gmpy2.mpfr("nan") == gmpy2.mpfr("nan")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
gmpy2.RangeError: comparison with NaN

Please see the Wiki pages for more documentation.

Note: If you encounter "ImportError: DLL load failed:..." error message, you will need to install the Microsoft Visual Studio 2010 Redistributable library.

November, 2010

gmpy 1.14 was released on November 18, 2010. A significant memory leak was fixed. This is a highly recommended upgrade. Due to changes in Python 3.2's core, the 64-bit Windows installer for Python 3.2 should only be used with Python 3.2a4 or later.

A new alpha release of the gmpy2 development version has been released. MPFR is now used to provide support for extended precision floating point arithmetic with support for trigonometric, exponential, logarithmic, and special functions. Again, the 64-bit Windows installer for Python 3.2 should only be used with Python 3.2a4 or later.

Installers for versions not listed on the home page are available on the Downloads tab.

Powered by Google Project Hosting