]> granicus.if.org Git - python/commitdiff
Issue #7028: Add note to hex() builtin docs pointing to float.hex().
authorMark Dickinson <dickinsm@gmail.com>
Sat, 3 Oct 2009 10:14:34 +0000 (10:14 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sat, 3 Oct 2009 10:14:34 +0000 (10:14 +0000)
Doc/library/functions.rst

index 25a1b840ca11c188cb4751e460331b333140ddda..cfb4154539e11fcbd5855a78b01392ddfb9898de 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.