Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 117d51d3dd7d by Mark Dickinson in branch 'default':
Issue #10925: Add equivalent pure Python code for the builtin int-to-float
conversion to test_long.
http://hg.python.org/cpython/rev/117d51d3dd7d
--
nosy:
Changes by Mark Dickinson dicki...@gmail.com:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10925
___
Mark Dickinson dicki...@gmail.com added the comment:
Thanks for the comments. Here's an updated patch, that actually makes use of
the pure Python version to test the built-in int-to-float conversion.
--
versions: -Python 2.7, Python 3.2
Added file:
Terry J. Reedy tjre...@udel.edu added the comment:
I see there is already something similar for true division.
I find
+q_max, shift_max = 1 sig_bits, sys.float_info.max_exp - sig_bits
easier to read as two lines
+q_max = 1 sig_bits
+shift_max = sys.float_info.max_exp - sig_bits
New submission from Mark Dickinson dicki...@gmail.com:
It would be helpful (perhaps to developers of alternative implementations) to
give a pure Python version of correctly-rounded long-to-float conversion.
Attached is such a version, as a patch to test_long in the release27-maint
branch.
Changes by Mark Dickinson dicki...@gmail.com:
--
components: +Tests
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10925
___