Commit 530df33e authored by Mark Dickinson's avatar Mark Dickinson

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

parent f638486c
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment