[Python-checkins] r75205 - python/trunk/Doc/library/functions.rst
mark.dickinson
python-checkins at python.org
Sat Oct 3 12:14:35 CEST 2009
Author: mark.dickinson
Date: Sat Oct 3 12:14:34 2009
New Revision: 75205
Log:
Issue #7028: Add note to hex() builtin docs pointing to float.hex().
Modified:
python/trunk/Doc/library/functions.rst
Modified: python/trunk/Doc/library/functions.rst
==============================================================================
--- python/trunk/Doc/library/functions.rst (original)
+++ python/trunk/Doc/library/functions.rst Sat Oct 3 12:14:34 2009
@@ -510,6 +510,11 @@
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.
More information about the Python-checkins
mailing list