]> granicus.if.org Git - python/commitdiff
Merged revisions 75205 via svnmerge from
authorMark Dickinson <dickinsm@gmail.com>
Sat, 3 Oct 2009 10:15:54 +0000 (10:15 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sat, 3 Oct 2009 10:15:54 +0000 (10:15 +0000)
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().
........

Doc/library/functions.rst

index 78fd05d6631186712a9e0894ff00ea34798c792f..d716e97558d7cc3a24bf5ddab34a1b4b60e8db12 100644 (file)
@@ -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.