gmpy 1.01 rc near... anybody wanna test>

casevh at comcast.net casevh at comcast.net
Mon Nov 7 02:45:48 EST 2005


I downloaded and tried the CVS version. Division still didn't work as
expected.

>>> import gmpy
>>> gmpy.version()
'1.01'
>>> gmpy.mpz(9)//gmpy.mpz(4)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: unsupported operand type(s) for //: 'mpz' and 'mpz'
>>> from __future__ import division
>>> gmpy.mpz(9)//gmpy.mpz(4)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: unsupported operand type(s) for //: 'mpz' and 'mpz'
>>> gmpy.mpz(9)/gmpy.mpz(4)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: unsupported operand type(s) for /: 'mpz' and 'mpz'
>>>

Platform: Solaris 10 x86, SunStudio compiler, GMP 4.1.4, Python 2.4.2




More information about the Python-list mailing list