A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-March/013784.html below:

[Python-Dev] test_coercion failing

[Python-Dev] test_coercion failing [Python-Dev] test_coercion failingGuido 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/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4