[Python-bugs-list] [ python-Bugs-687654 ] Future division breaks mpz

SourceForge.net noreply@sourceforge.net
Sun, 23 Feb 2003 05:52:01 -0800


Bugs item #687654, was opened at 2003-02-16 17:41
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=687654&group_id=5470

Category: None
Group: Python 2.2.2
>Status: Closed
>Resolution: Wont Fix
>Priority: 1
Submitted By: Jp Calderone (kuran)
Assigned to: Nobody/Anonymous (nobody)
Summary: Future division breaks mpz

Initial Comment:
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'


----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2003-02-23 08:52

Message:
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).

----------------------------------------------------------------------

Comment By: A.M. Kuchling (akuchling)
Date: 2003-02-17 19:59

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=687654&group_id=5470