diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-07-16 11:30:51 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-07-16 11:30:51 (GMT) |
commit | 65fe25e59710eada7eb41bddb45bdca8b61b5668 (patch) | |
tree | 9120eb8e01c582ba51b4732cdb21451ebe84b637 /Doc/whatsnew/2.6.rst | |
parent | 0c474d01a19e1237940a049a981ddc38588cde58 (diff) | |
download | cpython-65fe25e59710eada7eb41bddb45bdca8b61b5668.zip cpython-65fe25e59710eada7eb41bddb45bdca8b61b5668.tar.gz cpython-65fe25e59710eada7eb41bddb45bdca8b61b5668.tar.bz2 |
Merged revisions 64974 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r64974 | mark.dickinson | 2008-07-15 20:08:33 +0100 (Tue, 15 Jul 2008) | 3 lines
Issue #3008: add instance method float.hex and class method float.fromhex
to convert floats to and from hexadecimal strings respectively.
........
Diffstat (limited to 'Doc/whatsnew/2.6.rst')
-rw-r--r-- | Doc/whatsnew/2.6.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst index df5ccb6..264ec2e 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -1397,6 +1397,11 @@ Here are all of the changes that Python 2.6 makes to the core Python language. :func:`isnan`, return true if their floating-point argument is infinite or Not A Number. (:issue:`1640`) + The float type has a new instance method :meth:`float.hex` and a + corresponding new class method :meth:`float.fromhex` to convert + floating-point numbers to and from hexadecimal strings, + respectively. (:issue:`3008`) + * The :mod:`math` module has a number of new functions, and the existing functions have been improved to give more consistent behaviour across platforms, especially with respect to handling of |