[Python-checkins] cpython (2.7): Issue #29329: Improve documentation for hex(). Patch by Ammar Askar
mariatta.wijaya
python-checkins at python.org
Thu Feb 2 01:27:14 EST 2017
https://hg.python.org/cpython/rev/d7804789368a
changeset: 106379:d7804789368a
branch: 2.7
user: Mariatta Wijaya <mariatta.wijaya at gmail.com>
date: Wed Feb 01 22:27:02 2017 -0800
summary:
Issue #29329: Improve documentation for hex(). Patch by Ammar Askar
files:
Doc/library/functions.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -617,7 +617,7 @@
'0x1L'
If x is not a Python :class:`int` or :class:`long` object, it has to
- define an __index__() method that returns an integer.
+ define a __hex__() method that returns a string.
See also :func:`int` for converting a hexadecimal string to an
integer using a base of 16.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list