[ros-bugs] [Bug 1255] mathematic display/computation and python compatibility

ReactOS.Bugzilla at www.reactos.org ReactOS.Bugzilla at www.reactos.org
Wed Jul 9 23:56:01 CEST 2008


http://www.reactos.org/bugzilla/show_bug.cgi?id=1255





--- Comment #12 from jeanmichel.123 <jeanmichel.123 at free.Fr>  2008-07-09 23:55:58 CET ---
(In reply to comment #11)
> You're looking at code from the gnu c library, i suspect this code can be
> considered correct. This library is used very often and such simple errors
> would be known.

I agree with you, but the bug might be somewhere, and I just search for a clue.

>From what I seen fmod computes well: 
0. divided by 1. remains 0.
However it should compute 
3.25 divided by 1. remains 0.25

And I am wondering why first argument is 0. and not 3.25; might be a python
bug!? might be a float/double issue? I have no clue.


> Python 2.3.5 has this error, Python 2.5.2 has not - so Python must have fixed
> something in their own code as it seems.

Python *might* have fixed something. In fact, it looks like they do not use any
more fmod in divmod in python 2.5.2.
If this code worked with windows and wine, it should work with ReactOS.

> The tests haven't been changed from
> 2.3.5 to 2.5.2, only one test was added to test_divmod.
> Python is evolving as well, so please use a recent version

I tried the 2.5.2. It installs fine and easily, I was happily surprised. divmod
works fine with 2.5.2. 

> and don't search for
> old bugs that seem to have already been adressed. 

It is not really addressed. There is a workaround (2.5.2), for python users.
But the bug might be somewhere in ReactOS, and might occur with another
application.

> divmod is a python command
> after all.

The bug might be downgraded to priority P4, but it is relatively easy to
reproduce.


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Ros-bugs mailing list