[Python-bugs-list] [ python-Bugs-687654 ] Future division breaks mpz
SourceForge.net
noreply@sourceforge.net
Mon, 17 Feb 2003 16:59: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: Open
Resolution: None
Priority: 5
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: 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