[issue2337] Backport oct() and hex() to use __index__

Brett Cannon report at bugs.python.org
Mon Mar 17 18:51:06 CET 2008


New submission from Brett Cannon <brett at python.org>:

oct() and hex() need to use __index__ when available and then emit a
Py3K warning when they fall back on __oct__ and __hex__.

----------
components: Interpreter Core
keywords: 26backport
messages: 63695
nosy: brett.cannon
priority: immediate
severity: normal
status: open
title: Backport oct() and hex() to use __index__
versions: Python 2.6

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2337>
__________________________________


More information about the Python-bugs-list mailing list