Issue #7028: Add note to hex() builtin docs pointing to float.hex().

This commit is contained in:
Mark Dickinson 2009-10-03 10:14:34 +00:00
parent f638486cf0
commit 530df33eac
1 changed files with 5 additions and 0 deletions

View 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 Convert an integer number (of any size) to a hexadecimal string. The result is a
valid Python expression. valid Python expression.
.. note::
To obtain a hexadecimal string representation for a float, use the
:meth:`float.hex` method.
.. versionchanged:: 2.4 .. versionchanged:: 2.4
Formerly only returned an unsigned literal. Formerly only returned an unsigned literal.