From: Mark Dickinson Date: Sat, 3 Oct 2009 10:15:54 +0000 (+0000) Subject: Merged revisions 75205 via svnmerge from X-Git-Tag: v2.6.4rc1~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97d82171cbe77258e1d94ed9aa5f5a29b3d160b2;p=thirdparty%2FPython%2Fcpython.git Merged revisions 75205 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r75205 | mark.dickinson | 2009-10-03 11:14:34 +0100 (Sat, 03 Oct 2009) | 2 lines Issue #7028: Add note to hex() builtin docs pointing to float.hex(). ........ --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 78fd05d66311..d716e97558d7 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -510,6 +510,11 @@ available. They are listed here in alphabetical order. Convert an integer number (of any size) to a hexadecimal string. The result is a valid Python expression. + .. note:: + + To obtain a hexadecimal string representation for a float, use the + :meth:`float.hex` method. + .. versionchanged:: 2.4 Formerly only returned an unsigned literal.