[issue19988] hex() and oct() use __index__ instead of __int__
Guido van Rossum
report at bugs.python.org
Mon Dec 16 05:38:51 CET 2013
Guido van Rossum added the comment:
I still think the problem is with your class design. You shouldn't want a hex representation for a value that's not an integer.
For the difference between %x and hex() please open another issue (you might want to track down the cause in the source first so you can add a patch or at least a suggested fix to the issue).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19988>
_______________________________________
More information about the Python-bugs-list
mailing list