summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-10-03 10:15:54 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-10-03 10:15:54 (GMT)
commit97d82171cbe77258e1d94ed9aa5f5a29b3d160b2 (patch)
tree02e6ae0afc3d62338a5c000dccd0e8c0ba98c667 /Doc
parent7282a7aa70294ab8a6bf05314ca310262ab3b0b7 (diff)
downloadcpython-97d82171cbe77258e1d94ed9aa5f5a29b3d160b2.zip
cpython-97d82171cbe77258e1d94ed9aa5f5a29b3d160b2.tar.gz
cpython-97d82171cbe77258e1d94ed9aa5f5a29b3d160b2.tar.bz2
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(). ........
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/functions.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 78fd05d..d716e97 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.