]> granicus.if.org Git - python/commitdiff
Merged revisions 75205 via svnmerge from
authorMark Dickinson <dickinsm@gmail.com>
Sat, 3 Oct 2009 10:18:40 +0000 (10:18 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sat, 3 Oct 2009 10:18:40 +0000 (10:18 +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 ef021dd9b7cd5b8db6c73719170ac8d50e56eb78..4816f530ca3e928db954be570122985bb5e421a0 100644 (file)
@@ -489,6 +489,11 @@ are always available.  They are listed here in alphabetical order.
    expression.  If *x* is not a Python :class:`int` object, it has to define an
    :meth:`__index__` method that returns an integer.
 
+   .. note::
+
+      To obtain a hexadecimal string representation for a float, use the
+      :meth:`float.hex` method.
+
 
 .. function:: id(object)