[Python-Dev] test_coercion failing
Guido van Rossum
guido@digicool.com
Tue, 20 Mar 2001 16:16:32 -0500
> Test_coercion fails on the Mac (current CVS sources) with
> We expected (repr): '(1+0j)'
> But instead we got: '(1-0j)'
> test test_coercion failed -- Writing: '(1-0j)', expected: '(1+0j)'
>
> The computation it was doing was "2 / (2+0j) =".
>
> To my mathematical eye it shouldn't be complaining in the first place,
> but I assume this may be either a missing round() somewhere or a
> symptom of a genuine bug.
>
> Can anyone point me in the right direction?
Tim admits that he changed complex division and repr(). So that's
where you might want to look. If you wait a bit, Tim will check his
algorithm to see if a "minus zero" can pop out of it.
--Guido van Rossum (home page: http://www.python.org/~guido/)