[Python-bugs-list] [ python-Bugs-543387 ] bug? floor divison on complex
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 14 Apr 2002 16:24:30 -0700
Bugs item #543387, was opened at 2002-04-13 15:46
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=543387&group_id=5470
Category: Python Interpreter Core
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Hernan Martinez Foffani (hfoffani)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug? floor divison on complex
Initial Comment:
PEP 238 says:
"For complex numbers, // raises an exception, since
floor() of a complex number is not allowed."
But on 2.3 (and on CVS) complex floor division returns
divmod[0]
Is this a bug on complexobject.c or the PEP wasn't updated?
Regards,
-Hernan
----------------------------------------------------------------------
>Comment By: Hernan Martinez Foffani (hfoffani)
Date: 2002-04-15 01:24
Message:
Logged In: YES
user_id=112690
As suggested by Tim I'll upload here the patch and the test
for this bug.
The patch clears nb_true_divide entry and deletes the
complex_int_div function.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=543387&group_id=5470