1. Armin Rigo
  2. cpython-withatomic

Commits

Mark Dickinson  committed 25cfb70

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().
........

  • Participants
  • Parent commits fc74d51
  • Branches 2.6

Comments (0)

Files changed (1)

File Doc/library/functions.rst

View file
  • Ignore whitespace
    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.