[issue2337] Backport oct() and hex() to use __index__
Georg Brandl
report at bugs.python.org
Sun Apr 27 11:36:29 CEST 2008
Georg Brandl <georg at python.org> added the comment:
I don't assume there are too many people using oct() and hex() with
custom types anyway :)
Since PyNumber_ToBase and the new oct() format octal numbers with "0o"
instead of "0", I still think it's better if you need to import the new
oct() from future_builtins. For hex(), I have no preference.
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2337>
__________________________________
More information about the Python-bugs-list
mailing list