This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Future division breaks mpz
Type: Stage:
Components: None Versions: Python 2.2
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: akuchling, exarkun, gvanrossum
Priority: low Keywords:

Created on 2003-02-16 22:41 by exarkun, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Messages (3)
msg14622 - (view) Author: Jean-Paul Calderone (exarkun) * (Python committer) Date: 2003-02-16 22:41
When future division is enabled in Python 2.2.2,
division of mpz objects no longer functions.

>>> from mpz import mpz
>>> mpz(12) / mpz(4)
mpz(3)
>>> from __future__ import division
>>> mpz(12) / mpz(4)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: unsupported operand type(s) for /: 'mpz.mpz'
and 'mpz.mpz'
>>> mpz(12) // mpz(4)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: unsupported operand type(s) for //:
'mpz.mpz' and 'mpz.mpz'
msg14623 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2003-02-18 00:59
Logged In: YES 
user_id=11375

According to the docs for Python 2.2, the mpz module is deprecated and will be removed in Python 2.3, so it doesn't seem worth fixing this for a 
2.2.3 release.
msg14624 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2003-02-23 13:52
Logged In: YES 
user_id=6380

I don't recall why mpz is being deprecated (it's not listed
in PEP 4, nor has it actually been removed from 2.3 yet),
but I bet it's out of lack of maintainers, so I'll close
this as a WON'T FIX. If a volunteer to maintain mpz shows up
we could reverse the deprecation, but it looks like there
are already better solutions as 3rd party modules (gmpy and
mxNumber).
History
Date User Action Args
2022-04-10 16:06:52adminsetgithub: 37996
2003-02-16 22:41:54exarkuncreate