Gmpy

Alex Martelli aleax at aleax.it
Fri Aug 8 09:11:46 EDT 2003


Carl Banks wrote:
   ...
>>> I couldn't use gmpy because I needed floating point, and mxNumber also
>>> wraps the floating point functionality.  It seemed to work ok.
>> 
>> gmpy also wraps the floating-point functionality of GMP:
>> 
>>>>> print gmpy.mpf(7,99)/3
>> 2.333333333333333333333333333333333333333
> 
> 
> I'm sorry--I was thinking of the mpz module.  I remember looking at
> gmpy but passed on it for some reason--probably something silly.  In
> any case, mxNumber worked well enough so I stuck with it.

I'm sure mxNumber works just fine, but for some users installing all
of mx-base first, then all of mx-experimental, might be a bit much,
perhaps, if all they need is the use of GMP (also, I don't think the
egenix stuff supports Python 2.3 yet? no doubt just temporarily).

So, anyway, I've just updated gmpy with a few outstanding issues (all
already solved in CVS, except one case of misdiagnosis when wrong
numbers of arguments were passed to some functions, kindly reported
by Paul Rubin -- but I hadn't done a "file release" to pick up the
CVS enhancements in quite a long while!) and released it as 1.0 alpha.
The released Windows binaries, by the way, now require Python 2.3.


Alex





More information about the Python-list mailing list