diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-10-03 10:14:34 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-10-03 10:14:34 (GMT) |
commit | 530df33eac1307dffadf729a828bea72c32e6031 (patch) | |
tree | 60e85facfc1341d4ad3a90ad7d5cd488e20a9e88 | |
parent | f638486cf09816668c662241c160dad863582067 (diff) | |
download | cpython-530df33eac1307dffadf729a828bea72c32e6031.zip cpython-530df33eac1307dffadf729a828bea72c32e6031.tar.gz cpython-530df33eac1307dffadf729a828bea72c32e6031.tar.bz2 |
Issue #7028: Add note to hex() builtin docs pointing to float.hex().
-rw-r--r-- | Doc/library/functions.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 25a1b84..cfb4154 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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. |